For more accuracy, use my site search tool to search : '' or continue down the page to see what page the search engine thought you should see.
The python gdata client library has a method [GenerateAuthSubURL] that will create this hyperlink for you, sort of. You still are required to know and apply a scope to the request (basically the URL form of the data feed you want access to).
The python gdata client library has a method [AuthSubTokenFromUrl] to easily strip the token out of the URL when the user arrives on your Web Application doorstep from Google.
The python gdata client library has a method [UpgradeToSessionToken] to upgrade the one-time use token to an unlimited token in-place. All future references to the token will return the unlimited-use token.If you want to store this unlimited-use token, it is up to your web application to create a datamodel that will hold these tokens. The gdata library will not store these session tokens for future use for you.
newservice = gdata.contacts.service.ContactsService()newservice.auth_token = self.urltoken newservice.UpgradeToSessionToken()print newservice.auth_token>>> 'AuthSub token=klj23l2l2adf02_232aB'
contactservice = gdata.contacts.service.ContactsService()contactservice.auth_token = self.authsub_token.split('=')[1] feed = contactservice.GetContactsFeed()
Remember Me