FlickrContacts
Inherits from:none (FlickrContacts is a root class)
- Version: 1.0
- Author: Fabricio Zuardi
- Classpath: com.zuardi.flickr.FlickrContacts
- File last modified: Saturday, 04 September 2004, 09:39:10
FlickrContacts
last update 08/25/2004Summary
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
Instance properties
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
getList *
onListLoaded
onListLoaded:Function
(read,write)callback function, called at the end of a getList method
See also
response
response:XML
(read)last xml returned from server
Instance methods
getList
public 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);