google token
Thufir
hawat.thufir at gmail.com
Sat Mar 20 05:17:14 EDT 2010
I'd like to acquire a token, as below, but from Java:
def get_token(self,force=False) :
'''Return a tokey. A token is a special string that is used like
a session identification, but that expire rather quickly.'''
if ( force or (self._token == None) ) :
feedurl = CONST.URI_PREFIXE_API + CONST.API_TOKEN + '?
client=' + CONST.AGENT
# print feedurl
self._token = self._web.get(feedurl)
return self._token
http://pyrfeed.googlecode.com/svn/trunk/lib/GoogleReader/reader.py
Basically, that's just a GET on a particular URL, and the returned string
is saved as _token?
thanks,
Thufir
More information about the Python-list
mailing list