Created
April 17, 2014 21:50
-
-
Save tylerreinhart/11013572 to your computer and use it in GitHub Desktop.
Toopher Python Authentication Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import toopher | |
# Create an API object using your credentials | |
api = toopher.ToopherApi("<your consumer="" key="">", "<your consumer="" secret="">") | |
auth = api.authenticate(pairing_status.id, "my computer") | |
# Once they've responded you can then check the status | |
auth_status = api.get_authentication_status(auth.id) | |
if (auth_status.pending == false and auth_status.granted == true): | |
# Success! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment