NAME
Lokku::Net::YAP - Class used as a conduit to communicate with the Yahoo! Application Platform
FUNCTIONS
PUBLIC METHODS
new
Creates a new Lokku::Net::YAP object. The following arguments must be passed to the constructor in order to ensure access is gained to the Yahoo! user's details (location, age, etc).
KEY VALUE
----------- --------------------
consumer_key This key is defined in the YAP dashboard
consumer_secret This key is defined in the YAP dashboard
access_token Contained in the incoming request arguments
access_token_secret Contained in the incoming request arguments
The consumer_key and consumer_secret are both unique to a YAP project.
get_guid
This method returns the guid of the Yahoo! user who has made a request to the YAP application.
get_profile
This method returns the guid of the Yahoo! user who has made a request to the YAP application.
authorized
Whether the client has the necessary credentials to be authorized.
Note that the credentials may be wrong and so the request may still fail.
This method exists within Net::OAuth::Simple but has a bug and thus we over-ride it here. The bug is that it returns true even if the access_* tokens are zero length.