Net::OAuth2::Moosey::AccessToken - OAuth 2.0 Access token object
0.01
Used by Net::OAuth2::Moosey::Client.
my $client = Net::OAuth2::Moosey::Client->new( %client_params ); my $token_object = $client->access_token_object(); my $access_token = $token_object->valid_access_token();
See Net::OAuth2::Moosey::Client
The access token
The refresh token
The token type as returned by your service provider.
The unix timestamp when the access token will expire
Seconds until the access token will expire. Only really useful for setting an expiry time in the future, then use expires_at to test against.
Returns a valid access token (refreshing if necessary)
Create a string representation of this token
Sync with the store file. First reads out the current data from the file, and then compares the current known data with that found in the file to identify which is the freshest. Writes the resulting freshest back to the store again for reuse next time.
Net::OAuth2::Moosey::AccessToken - OAuth Access Token
Net::OAuth::Moosey::Client
Copyright 2011 Robin Clarke
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Net::OAuth2::Moosey::Client, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::OAuth2::Moosey::Client
CPAN shell
perl -MCPAN -e shell install Net::OAuth2::Moosey::Client
For more information on module installation, please visit the detailed CPAN module installation guide.