Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Toopher Perl Authentication Example
use ToopherAPI
# Create an API object using your credentials
my $api = new ToopherApi("<your consumer key>", "<your consumer secret>");
# Step 2 - Authenticate a log in
my $auth = $api->authenticate($pairing_status->id, "my computer")
# Once they've responded you can then check the status
my $auth_status = $api->get_authentication_status($auth->id)
if (!($auth_status->pending) && $auth_status->granted){
# Success!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment