Created
April 18, 2014 21:19
-
-
Save tylerreinhart/11064893 to your computer and use it in GitHub Desktop.
Toopher dotnet 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
using Toopher; | |
// Create an API object using your credentials | |
ToopherApi api = new ToopherApi("<your consumer key>", "<your consumer secret>"); | |
// Authenticate a log in | |
AuthenticationStatus auth = api.Authenticate(pairing.id, "my computer"); | |
// Once they've responded you can then check the status | |
AuthenticationStatus status = api.GetAuthenticationStatus(auth.id); | |
if (auth.pending == false && auth.granted == true) { | |
// Success! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment