Groups
| Kind of class: | public class |
|---|---|
| Package: | com.adobe.webapis.flickr.methodgroups |
| Inherits from: | none |
| Classpath: | com.adobe.webapis.flickr.methodgroups.Groups |
| File last modified: | Monday, 03 July 2006, 15:44:34 |
Contains the methods for the Groups method group in the Flickr API.
Even though the events are listed here, they're really broadcast
from the FlickrService instance itself to make using the service
easier.
Summary
Constructor
- Groups (service:FlickrService)
- Construct a new Blogs "method group" class
Instance properties
Instance methods
- browse (cat_id:String = "0") : void
- Browse the group category tree, finding groups and sub-categories.
- browse_result (event:Event) : void
- Capture the result of the browse call, and dispatch
- getInfo (group_id:String) : void
- Get information about a group.
- getInfo_result (event:Event) : void
- Capture the result of the getInfo call, and dispatch
- search (text:String, per_page:Number = 100, page:Number = 1) : void
- Search for groups.
- search_result (event:Event) : void
- Capture the result of the search call, and dispatch
Constructor
Groups
Construct a new Blogs "method group" class
Parameters:
service:
The FlickrService this method group
is associated with.
@langversion ActionScript 3.0
@playerversion Flash 8.5
Instance properties
_service
A reference to the FlickrService that contains the api key
and logic for processing API calls/responses
pools
Provide read-only access to the Pools method group in the Flickr API
@langversion ActionScript 3.0
@playerversion Flash 8.5
Instance methods
browse
public function browse (
cat_id:String = "0") : void
Browse the group category tree, finding groups and sub-categories.
This method requires authentication with READ permission.
Parameters:
cat_id:
(Optional) The category id to fetch a list of groups
and sub-categories for. If not specified, it defaults
to zero, the root of the category tree.
See also:
- http://www.flickr.com/services/api/flickr.groups.browse.html @langversion ActionScript 3.0 @playerversion Flash 8.5
browse_result
private function browse_result (
event:Event) : void
Capture the result of the browse call, and dispatch
the event to anyone listening.
Parameters:
event:
The complete event generated by the URLLoader
that was used to communicate with the Flickr API
from the invokeMethod method in
getInfo
public function getInfo (
group_id:String) : void
Get information about a group.
Parameters:
group_id:
The NSID of the group to fetch information for.
See also:
- http://www.flickr.com/services/api/flickr.groups.getInfo.html @langversion ActionScript 3.0 @playerversion Flash 8.5
getInfo_result
private function getInfo_result (
event:Event) : void
Capture the result of the getInfo call, and dispatch
the event to anyone listening.
Parameters:
event:
The complete event generated by the URLLoader
that was used to communicate with the Flickr API
from the invokeMethod method in MethodGroupHelper
search
public function search (
text:String,
per_page:Number = 100,
page:Number = 1) : void
Search for groups. 18+ groups will only be returned for authenticated
calls where the authenticated user is over 18.
Parameters:
text :
The text to search for.
per_page:
(Optional) Number of groups to return per page. If this
argument is ommited, it defaults to 100. The maximum allowed
value is 500.
page :
(Optional) The page of results to return. If this argument
is ommited, it defaults to 1.
See also:
- http://www.flickr.com/services/api/flickr.blogs.postPhoto.html @langversion ActionScript 3.0 @playerversion Flash 8.5
search_result
private function search_result (
event:Event) : void
Capture the result of the search call, and dispatch
the event to anyone listening.
Parameters:
event:
The complete event generated by the URLLoader
that was used to communicate with the Flickr API
from the invokeMethod method in MethodGroupHelper