FlickrContacts

Kind of class:class
Inherits from:none
Version:1.0
Author:Fabricio Zuardi
Classpath:com.zuardi.flickr.FlickrContacts
File last modified:Saturday, 04 September 2004, 10:39:10
FlickrContacts
last update 08/25/2004

Summary


Constructor
  • FlickrContacts (api_key:String, user_email:String, user_password:String, rest_endpoint:String)
    • These parameters are filled automatically if you are using a Flickr object
Class properties
Instance properties
Instance methods
Event handlers
  • onListLoaded : Function
    • callback function, called at the end of a getList method

Constructor

FlickrContacts

function FlickrContacts (
api_key:String, user_email:String, user_password:String, rest_endpoint:String)

These parameters are filled automatically if you are using a Flickr object
otherwise, if you are instantiating a FlickrContacts object, you have to enter the parameters
Parameters:
api_key :
(required) The api_key of the application
user_email :
(optional) The email to use on methods that requires user authentication
user_password:
(optional) The email to use on methods that requires user authentication
rest_endpoint:
(optional) The rest endpoint url

Class properties

REST_ENDPOINT

static private REST_ENDPOINT:String = "http://www.flickr.com/services/rest/"
(read)

Instance properties

_api_key

private _api_key:String
(read)

_contacts

private _contacts:Array
(read)

_email

private _email:String
(read)

_password

private _password:String
(read)

_response

private _response:XML
(read)

_rest_endpoint

private _rest_endpoint:String
(read)

list

list:Array
(read)

a list of the contacts, resulted from a getList method call
is an Array of objects, each object has the following attributes
nsid, username, friend, family, ignored, online
See also:

response

response:XML
(read)

last xml returned from server

Instance methods

getList

function getList (
)

Get a list of contacts for the calling user.
entries that can be accessed through the list attribute
Parameters:
user_email :
(required) The email used to authenticate on Flickr
user_password:
(required) The password used to authenticate on Flickr
Usage:
  • my_flickr = new Flickr(APIKEY);
    my_flickr.contacts.onListLoaded = function(error,obj){
    if(!error){
         trace(obj.list[0].username)
        }else{
        trace(error)
    }
    };
    my_flickr.contacts.getList(USEREMAIL,USERPASSWD);

Event handlers

onListLoaded

onListLoaded:Function
(read)

callback function, called at the end of a getList method
See also: