WWW::Authy - Easy access to the already so easy Authy API
version 0.002
my $authy = WWW::Authy->new($authy_api_key); # email, cellphone, country code (optional) my $id = $authy->new_user('email@universe.org','555-123-2345','1'); $authy->verify($id,$token) or print (Dumper $authy->errors); $authy->sms($id); # send sms for token
This library gives an easy way to access the API of Authy 2-factor authentification system.
API Key for the account given on the Account Settings
Use the sandbox instead of the live system. This is off by default.
Gives back the error of the last request, if any given.
Base of the URL of the Authy API, this is https://api.authy.com without sandbox mode, and http://sandbox-api.authy.com, when the sandbox is activated.
LWP::UserAgent object used for the HTTP requests.
The user agent string used for the "useragent" object.
The timeout value in seconds used for the "useragent" object, defaults to default value of LWP::UserAgent.
JSON object used for JSON decoding.
Takes the email, the cellphone number and optional the country code as parameters and gives back the id for this user. Authy will generate the user if he doesn't exist (verified by cellphone number), on a matching entry it just gives back the existing user id.
Verifies the first parameter as user id against the second parameter the token. It gives back a true or a false value, it still could be another error then an invalid token, so far this module doesnt differ.
Send a SMS to the given user id. Please be aware that this may produce cost. See the pricing on http://www.authy.com/pricing/ for more informations.
IRC
Join #duckduckgo on irc.freenode.net. Highlight Getty for fast reaction :).
Repository
http://github.com/Getty/p5-www-authy Pull request and additional contributors are welcome
Issue Tracker
http://github.com/Getty/p5-www-authy/issues
Torsten Raudssus <torsten@raudss.us>
This software is copyright (c) 2012 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WWW::Authy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::Authy
CPAN shell
perl -MCPAN -e shell install WWW::Authy
For more information on module installation, please visit the detailed CPAN module installation guide.