Note that there are some explanatory texts on larger screens.

plurals
  1. POAndroid Google Calendar Authorization Problem
    primarykey
    data
    text
    <p>I'm trying to make an app that accesses a user's Google Calendar using OAuth. I have the code in place that gets all of the proper tokens and they are saved into some preferences. I used the tutorial <a href="http://blog.doityourselfandroid.com/2010/11/10/oauth-flow-in-android-app/" rel="nofollow">here</a> to do this all, by the way. I have successfully changed the scope and request URL's so that I'm getting the needed tokens. The problem comes when I actually try to USE the token. Instead of calendar info, I get back some HTML that says "Unknown authorization header Error 401". The request URL I am using is:</p> <pre><code> https://www.google.com/calendar/feeds/default/allcalendars/full </code></pre> <p>and the scope is:</p> <pre><code> http://www.google.com/calendar/feeds/ </code></pre> <p>I have tried replacing 'default' with my email address (which is also the one that I used for the OAuth) to no avail. Am I using the wrong URL? if not, what else could cause this error? I have been looking for a few days now to find someone who has accessed the Calendar using OAuth, but everything I have found is people giving up because it's too difficult or doesn't work.</p> <p>EDIT:</p> <p>I believe my header is correct, here is an example of it:</p> <pre><code> OAuth oauth_token="************-********-**********-****", oauth_consumer_key="anonymous", oauth_version="1.0", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1303161387", oauth_nonce="*******************", oauth_signature="*******************" </code></pre> <p>That is pulled directly from my app, and from what I could find it looks right to me, but I'm still getting the error above (Unknown Authorization Header Error 401).</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload