Net::API::Gett::User - Gett User object
This class encapsulates Gett service user functions. You normally shouldn't instanstiate this class on its own as the library will create and return this object when appropriate.
Here are the attributes of this class. They are read only.
Scalar string. has_api_key predicate.
has_api_key
Scalar string. has_email predicate.
has_email
Scalar string. has_password predicate.
has_password
Scalar string. Populated by login call. has_access_token() predicate.
login
has_access_token()
Scalar integer. Unix epoch seconds until an access token is no longer valid which is currently 24 hours (86400 seconds) from token acquisition. This value is suitable for use in a call to localtime().
localtime()
Scalar string. Populated by login call. Can be used to generate a new valid access token without reusing an email/password login method. has_refresh_token() predicate.
has_refresh_token()
This is a Net::API::Gett::Request object. Defaults to a new instance of that class.
Scalar string.
Scalar integer. In bytes.
This method populates the access_token, refresh_token and user attributes. It usually doesn't need to be explicitly called since methods which require an access token will automatically (and lazily) attempt to log in to the API and get one.
access_token
refresh_token
user
Returns a perl hash representation of the JSON output for https://open.ge.tt/1/users/login.
Refreshes user data.
Net::API::Gett
To install Net::API::Gett, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::API::Gett
CPAN shell
perl -MCPAN -e shell install Net::API::Gett
For more information on module installation, please visit the detailed CPAN module installation guide.