I'm trying to access the google Blogger API from an Android App. I have gotten OAuth2 working and it seems to be returning valid OAuth tokens. Here's what I'm tryiing to do:
My url is formed like so:
https://www.googleapis.com/blogger/v3/users/self/blogs?key=<my app key>&client_id=<my client id>
HttpGet httpGet = new HttpGet(url.toString());
httpGet.setHeader("Authorization", oauthToken);
HttpResponse response = httpclient.execute(httpGet);
StatusLine statusLine = response.getStatusLine();
The result of this is always a 401 Unauthorized. If I change the Authorization header to
httpGet.setHeader("Authorization", "OAuth " + oauthToken);
I get a 403 Forbidden instead.
Any help is much appreciated! Thanks