Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make the fireeagle OAuth less sucky

  • Loading branch information...
commit 5c27e68afc9f0a8cd13c52c3ec80c8604c5c539a 1 parent 13cc7d6
@rodbegbie authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 python/threequarters/fireeagle/fetchFireEagle.py
View
5 python/threequarters/fireeagle/fetchFireEagle.py
@@ -1,7 +1,8 @@
CONSUMER_SECRET='gQYRSEgCsEZSCDM2Pa6qr9aTVCmT80Mx'
CONSUMER_KEY='3q3VkoxUjwP9'
-USER_TOKEN_STRING='oauth_token_secret=8gMH42725VgaLB4b3iahYLdxozVawLlM&oauth_token=VhfSR2SzLkzM'
+USER_TOKEN ='VhfSR2SzLkzM'
+USER_TOKEN_SECRET = '8gMH42725VgaLB4b3iahYLdxozVawLlM'
from fireeagle_api import FireEagle
from oauth import OAuthToken
@@ -10,7 +11,7 @@
import datetime
fe = FireEagle(CONSUMER_KEY, CONSUMER_SECRET)
-token = OAuthToken.from_string(USER_TOKEN_STRING)
+token = OAuthToken(USER_TOKEN, USER_TOKEN_SECRET)
locations = fe.user(token)[0]["location"]
#from pprint import pprint
Please sign in to comment.
Something went wrong with that request. Please try again.