Note that there are some explanatory texts on larger screens.

plurals
  1. POError with OAuth in the Google Data Protocol Client Libraries
    primarykey
    data
    text
    <p>When I was testing the code in "OAuth in the Google Data Protocol Client Libraries (<a href="http://code.google.com/apis/gdata/docs/auth/oauth.html" rel="nofollow">http://code.google.com/apis/gdata/docs/auth/oauth.html</a>)", I always got the following error. Anyone can give me a hint?</p> <p>Error Code:</p> <pre><code> File "D:\PROJ\GAE\proj2\proj2.py", line 262, in get return self.redirect(auth_url) File "C:\DEV\google_appengine\v1.4.2\google\appengine\ext\webapp\__init__.py", line 380, in redirect absolute_url = urlparse.urljoin(self.request.uri, uri) File "C:\DEV\Python\v2.5.4\lib\urlparse.py", line 253, in urljoin urlparse(url, bscheme, allow_fragments) File "C:\DEV\Python\v2.5.4\lib\urlparse.py", line 154, in urlparse tuple = urlsplit(url, scheme, allow_fragments) File "C:\DEV\Python\v2.5.4\lib\urlparse.py", line 193, in urlsplit i = url.find(':') AttributeError: 'Uri' object has no attribute 'find' </code></pre> <p>Here is the code I want to fetch Google contacts info:</p> <pre><code>class Test(webapp.RequestHandler): def get(self): client = gdata.contacts.client.ContactsClient(source = 'www.mydomainname.com') callback_url = 'http://%s/test2' % self.request.host request_token = client.GetOAuthToken(['http://www.google.com/m8/feeds/'], callback_url, GOOGLE_KEY, GOOGLE_SECRET) gdata.gauth.AeSave(request_token, 'request_token') auth_url = request_token.generate_authorization_url(google_apps_domain = None) return self.redirect(auth_url) #Error?! </code></pre> <p>Thanks in advance!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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.
 

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