T
Thufir
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
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