Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.