FlickrUrls
Inherits from:none (FlickrUrls is a root class)
- Version: 1.0
- Author: Fabricio Zuardi
- Classpath: com.zuardi.flickr.FlickrUrls
- File last modified: Saturday, 04 September 2004, 09:42:09
FlickrUrls
last update 08/29/2004Summary
Constructor
Instance properties
Instance methods
Constructor
FlickrUrls
function FlickrUrls (
api_key:String,
rest_endpoint:String)
These parameters are filled automatically if you are using a Flickr object
otherwise, if you are instantiating a FlickrTags object, you have to enter the parameters
Parameters
api_key: :
(required) The api_key of the application
rest_endpoint::
(optional) The rest endpoint url
Instance properties
group_id
group_id:String
(read)group_url
group_url:String
(read)onGetGroup
onGetGroup:Function
(read,write)callback function, called at the end of a getGroup method
See also
onGetUserPhotos
onGetUserPhotos:Function
(read,write)callback function, called at the end of a getUserPhotos method
See also
response
response:XML
(read)last xml returned from server
user_id
user_id:String
(read)user_photos_url
user_photos_url:String
(read)user_profile_url
user_profile_url:String
(read)Instance methods
getGroup
public function getGroup (
group_id)
Returns the url to a group's page.
the result are stored in the group_url attribute
Parameters
group_id:
(Required)The NSID of the group to fetch the url for.
Usage
my_flickr = new Flickr(APIKEY); my_flickr.urls.onGetGroup = function(error,obj){ if(!error){ trace(obj.group_url) }else{ trace(error) } }; my_flickr.urls.getGroup(GROUPID);
lookupGroup
public function lookupGroup (
url)
Returns a group NSID, given the url to a group's page or photo pool.
the result are stored in the group_id attribute
Parameters
url:
(Required)The url to the group's page or photo pool.
Usage
my_flickr = new Flickr(APIKEY); my_flickr.urls.onLookupGroup = function(error,obj){ if(!error){ trace(obj.group_id) }else{ trace(error) } }; my_flickr.urls.lookupGroup(URL);