NAME
Google::Client::Role::Token
DESCRIPTION
A role that provides access token attrs/methods for Google::Client::* modules. Will get the access_token value keyed by $self->cache_key
from the cache.
ATTRIBUTES
access_token
The access token retrieved from making an access token request to Google. Should only be used to get the value, as its value will be retrieved from the cache.
cache
The object which stores the access token. Can be a CHI instance, or any object which provides a get($key)
method. Used to retrieve the access token.
cache_key
The key from which to get the access token from the cache. Should be set before making requests to Googles API as that's when we retrieve an access token.
AUTHOR
Ali Zia, <ziali088@gmail.com>
REPOSITORY
https://github.com/ziali088/googleapi-client
COPYRIGHT AND LICENSE
This is free software. You may use it and distribute it under the same terms as Perl itself. Copyright (C) 2016 - Ali Zia