Packagecom.adobe.webapis.flickr.methodgroups
Classpublic class Auth

Contains the methods for the Auth method group in the Flickr API. Even though the events are listed here, they're really broadcast from the FlickrService instance itself to make using the service easier.



Public Methods
 MethodDefined by
  
Construct a new Test "method group" class
Auth
  
checkToken(token:String):void
Returns the credentials attached to an authentication token.
Auth
  
getFrob():void
Returns a frob to be used during authentication.
Auth
  
getToken(frob:String):void
Returns the auth token for the given frob, if one has been attached.
Auth
Events
 EventSummaryDefined by
   Broadcast as a result of the checkToken method being called The event contains the following properties success - Boolean indicating if the call was successful or not data - When success is true, contains an "auth" AuthResult instance When success is false, contains an "error" FlickrError instance Auth
   Broadcast as a result of the getFrob method being called The event contains the following properties success - Boolean indicating if the call was successful or not data - When success is true, contains a "frob" string (the frob value to be used for authentication) When success is false, contains an "error" FlickrError instance Auth
   Broadcast as a result of the getToken method being called The event contains the following properties success - Boolean indicating if the call was successful or not data - When success is true, contains an "auth" AuthResult instance When success is false, contains an "error" FlickrError instance Auth
Constructor detail
Auth()constructor
public function Auth(service:FlickrService)

Construct a new Test "method group" class

Parameters
service:FlickrService — The FlickrService this method group is associated with.
Method detail
checkToken()method
public function checkToken(token:String):void

Returns the credentials attached to an authentication token.

Parameters
token:String — The authentication token to check

See also

getFrob()method 
public function getFrob():void

Returns a frob to be used during authentication.

See also

getToken()method 
public function getToken(frob:String):void

Returns the auth token for the given frob, if one has been attached.

Parameters
frob:String — The frob to get the token for

See also

Event detail
authCheckTokenevent 
Event object type: com.adobe.webapis.flickr.events.FlickrResultEvent

Broadcast as a result of the checkToken method being called The event contains the following properties success - Boolean indicating if the call was successful or not data - When success is true, contains an "auth" AuthResult instance When success is false, contains an "error" FlickrError instance

See also

checkToken
com.adobe.service.flickr.FlickrError
authGetFrobevent  
Event object type: com.adobe.webapis.flickr.events.FlickrResultEvent

Broadcast as a result of the getFrob method being called The event contains the following properties success - Boolean indicating if the call was successful or not data - When success is true, contains a "frob" string (the frob value to be used for authentication) When success is false, contains an "error" FlickrError instance

See also

getFrob
com.adobe.service.flickr.FlickrError
authGetTokenevent  
Event object type: com.adobe.webapis.flickr.events.FlickrResultEvent

Broadcast as a result of the getToken method being called The event contains the following properties success - Boolean indicating if the call was successful or not data - When success is true, contains an "auth" AuthResult instance When success is false, contains an "error" FlickrError instance

See also

getToken
com.adobe.service.flickr.FlickrError