FlickrUrls
| Kind of class: | class |
|---|---|
| Inherits from: | none |
| Version: | 1.0 |
| Author: | Fabricio Zuardi |
| Classpath: | com.zuardi.flickr.FlickrUrls |
| File last modified: | Saturday, 04 September 2004, 10:42:10 |
FlickrUrls
last update 08/29/2004
last update 08/29/2004
Summary
Constructor
- FlickrUrls (api_key:String, rest_endpoint:String)
- These parameters are filled automatically if you are using a Flickr object
Class properties
- REST_ENDPOINT : String
Instance properties
- _api_key : String
- _rest_endpoint : String
- _group_url : String
- _group_name : String
- _user_photos_url : String
- _user_profile_url : String
- _group_id : String
- _user_id : String
- _response : XML
- group_url : String
- user_photos_url : String
- user_profile_url : String
- group_id : String
- user_id : String
- response : XML
- last xml returned from server
Instance methods
- lookupGroup (url)
- Returns a group NSID, given the url to a group's page or photo pool.
- getGroup (group_id)
- Returns the url to a group's page.
Event handlers
- onGetGroup : Function
- callback function, called at the end of a getGroup method
- onGetUserPhotos : Function
- callback function, called at the end of a getUserPhotos method
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
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
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)
_group_id
private _group_id:String
(read)
_group_name
private _group_name:String
(read)
_group_url
private _group_url:String
(read)
_response
private _response:XML
(read)
_rest_endpoint
private _rest_endpoint:String
(read)
_user_id
private _user_id:String
(read)
_user_photos_url
private _user_photos_url:String
(read)
_user_profile_url
private _user_profile_url:String
(read)
group_id
group_id:String
(read)
group_url
group_url:String
(read)
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
function getGroup (
group_id)
Returns the url to a group's page.
the result are stored in the group_url attribute
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
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
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);
Event handlers
onGetGroup
onGetGroup:Function
(read)
callback function, called at the end of a getGroup method
See also:
onGetUserPhotos
onGetUserPhotos:Function
(read)
callback function, called at the end of a getUserPhotos method
See also: