FlickrService

Kind of class:public class
Package:com.adobe.webapis.flickr
Inherits from:URLLoaderBase
Classpath:com.adobe.webapis.flickr.FlickrService
File last modified:Monday, 03 July 2006, 15:44:36
The FlickrService class abstracts the Flickr API found at http://www.flickr.com/services/api/

Summary


Constructor
Class properties
  • END_POINT : String
    • The REST endpoint where we can talk with Flickr service
  • AUTH_END_POINT : String
    • The endpoint where we go for authentication
Instance properties
  • _api_key : String
    • Store the API key that gives developers access to the Flickr service
  • _secret : String
    • The "shared secret" of your application for authentication
  • _token : String
    • The token identifying the user as logged in
  • _permission : String
    • One of the consants from the AuthPerm class corresponding
  • _auth : Auth
    • Private variable that we provide read-only access to
  • _blogs : Blogs
  • _contacts : Contacts
  • _favorites : Favorites
  • _groups : Groups
  • _people : People
  • _photos : Photos
  • _photosets : PhotoSets
  • _tags : Tags
  • _test : Test
  • _urls : Urls
  • api_key : String
    • Returns the current API key in use for accessing the Flickr service.
  • secret : String
    • Returns the "shared secret" of the Application associated with
  • token : String
    • Returns the token identifying the user as logged in
  • permission : String
    • Returns the permission the application has for the
  • auth : Auth
    • Provide read-only access to the Auth method group in the Flickr API
  • blogs : Blogs
    • Provide read-only access to the Blogs method group in the Flickr API
  • contacts : Contacts
    • Provide read-only access to the Contacts method group in the Flickr API
  • favorites : Favorites
    • Provide read-only access to the Favorites method group in the Flickr API
  • groups : Groups
    • Provide read-only access to the Groups method group in the Flickr API
  • people : People
    • Provide read-only access to the People method group in the Flickr API
  • photos : Photos
    • Provide read-only access to the Photos method group in the Flickr API
  • photosets : PhotoSets
    • Provide read-only access to the PhotoSets method group in the Flickr API
  • tags : Tags
    • Provide read-only access to the Tags method group in the Flickr API
  • test : Test
    • Provide read-only access to the Test method group in the Flickr API
  • urls : Urls
    • Provide read-only access to the Urls method group in the Flickr API
  • urlLoader : URLLoader
    • Use our "internal" namespace to provide access to the URLLoader;
Instance methods
  • getLoginURL (frob:String, permission:String) : String
    • Returns the URL to use for authentication so the developer

Constructor

FlickrService

public function FlickrService (
api_key:String)

Class properties

AUTH_END_POINT

public static AUTH_END_POINT:String = "http://flickr.com/services/auth/?"
(read,write)

The endpoint where we go for authentication

END_POINT

public static END_POINT:String = "http://flickr.com/services/rest/?"
(read,write)

The REST endpoint where we can talk with Flickr service

Instance properties

_api_key

private _api_key:String
(read)

Store the API key that gives developers access to the Flickr service

_auth

private _auth:Auth
(read)

Private variable that we provide read-only access to

_blogs

private _blogs:Blogs
(read)

_contacts

private _contacts:Contacts
(read)

_favorites

private _favorites:Favorites
(read)

_groups

private _groups:Groups
(read)

_people

private _people:People
(read)

_permission

private _permission:String
(read)

One of the consants from the AuthPerm class corresponding to the current permission the authenticated user has

_photos

private _photos:Photos
(read)

_photosets

private _photosets:PhotoSets
(read)

_secret

private _secret:String
(read)

The "shared secret" of your application for authentication

_tags

private _tags:Tags
(read)

_test

private _test:Test
(read)

_token

private _token:String
(read)

The token identifying the user as logged in

_urls

private _urls:Urls
(read)

api_key

public api_key:String
(read,write)

Returns the current API key in use for accessing the Flickr service. @langversion ActionScript 3.0 @playerversion Flash 8.5 Sets the API key that should be used to access the Flickr service.
Parameters:
value:
The API key to use against Flickr.com

auth

public auth:Auth
(read)

Provide read-only access to the Auth method group in the Flickr API @langversion ActionScript 3.0 @playerversion Flash 8.5

blogs

public blogs:Blogs
(read)

Provide read-only access to the Blogs method group in the Flickr API @langversion ActionScript 3.0 @playerversion Flash 8.5

contacts

public contacts:Contacts
(read)

Provide read-only access to the Contacts method group in the Flickr API @langversion ActionScript 3.0 @playerversion Flash 8.5

favorites

public favorites:Favorites
(read)

Provide read-only access to the Favorites method group in the Flickr API @langversion ActionScript 3.0 @playerversion Flash 8.5

groups

public groups:Groups
(read)

Provide read-only access to the Groups method group in the Flickr API @langversion ActionScript 3.0 @playerversion Flash 8.5

people

public people:People
(read)

Provide read-only access to the People method group in the Flickr API @langversion ActionScript 3.0 @playerversion Flash 8.5

permission

public permission:String
(read,write)

Returns the permission the application has for the currently logged in user's account. @langversion ActionScript 3.0 @playerversion Flash 8.5 Sets the desired permission for the user's account requested by the application. During the login process, the user has the ability to allow or deny the application the permission.
Parameters:
value:
One of the consants from the AuthPerm class corresponding to the current permission the authenticated user has
See also:
  • @langversion ActionScript 3.0 @playerversion Flash 8.5

photos

public photos:Photos
(read)

Provide read-only access to the Photos method group in the Flickr API @langversion ActionScript 3.0 @playerversion Flash 8.5

photosets

public photosets:PhotoSets
(read)

Provide read-only access to the PhotoSets method group in the Flickr API @langversion ActionScript 3.0 @playerversion Flash 8.5

secret

public secret:String
(read,write)

Returns the "shared secret" of the Application associated with the API key for use in Authentication. Sets the "shared secret" to that of an Application configured against the API key for use in Authentication.
Parameters:
value:
The "shared secret" of the Application to authenticate against.
See also:

tags

public tags:Tags
(read)

Provide read-only access to the Tags method group in the Flickr API @langversion ActionScript 3.0 @playerversion Flash 8.5

test

public test:Test
(read)

Provide read-only access to the Test method group in the Flickr API @langversion ActionScript 3.0 @playerversion Flash 8.5

token

public token:String
(read,write)

Returns the token identifying the user as logged in @langversion ActionScript 3.0 @playerversion Flash 8.5 Sets the token identifyin the user as logged in so that the FlickrService API can sign the method calls correctly.
Parameters:
value:
The authentication token @langversion ActionScript 3.0 @playerversion Flash 8.5

urlLoader

flickrservice_internal public urlLoader:URLLoader
(read)

Use our "internal" namespace to provide access to the URLLoader; from this class to the helper classes in the methodgroups package. This keeps this method away from the public API since it is not meant to be used by the public.

urls

public urls:Urls
(read)

Provide read-only access to the Urls method group in the Flickr API @langversion ActionScript 3.0 @playerversion Flash 8.5

Instance methods

getLoginURL

public function getLoginURL (
frob:String, permission:String) : String

Returns the URL to use for authentication so the developer doesn't have to build it by hand.
Parameters:
frob :
The frob from flickr.auth.getFrob to authenticate with
permission:
The permission the user will have after successful login
Returns:
  • The url to open a browser to to authenticate against @langversion ActionScript 3.0 @playerversion Flash 8.5