def get_new_fs_for_userinfo(userinfo):
  oauth_token, oauth_secret = constants.get_oauth_strings()
  credentials = foursquare.OAuthCredentials(oauth_token, oauth_secret)
  user_token = oauth.OAuthToken(userinfo.token, userinfo.secret)
  credentials.set_access_token(user_token)
  return foursquare.Foursquare(credentials)
Esempio n. 2
0
 def _get_new_fs_and_credentials(self):
     consumer_key, oauth_secret, url = constants.get_oauth_strings()
     fs = foursquare.FoursquareAuthHelper(key=consumer_key,
                                          secret=oauth_secret,
                                          redirect_uri=url)
     return fs, None
Esempio n. 3
0
 def _get_new_fs_and_credentials(self):
   consumer_key, oauth_secret, url = constants.get_oauth_strings()
   fs = foursquare.FoursquareAuthHelper(key=consumer_key, secret=oauth_secret, redirect_uri=url)
   return fs, None
Esempio n. 4
0
 def get_new_fs_and_credentials():
   oauth_token, oauth_secret = constants.get_oauth_strings()
   credentials = foursquare.OAuthCredentials(oauth_token, oauth_secret)
   fs = foursquare.Foursquare(credentials)
   return fs, credentials
Esempio n. 5
0
 def get_new_fs_and_credentials():
   consumer_key, oauth_secret, url = constants.get_oauth_strings()
   fs = foursquarev2.FoursquareAuthHelper(key=consumer_key, secret=oauth_secret, redirect_uri=url)
   #credentials = foursquare.OAuthCredentials(oauth_token, oauth_secret)
   #fs = foursquare.Foursquare(credentials)
   return fs, None