logo       

[Flickr APIs] Flickr API AS2 library: msg#00060

web.flickr.api

Subject: [Flickr APIs] Flickr API AS2 library

Hi,

I am seeing some great efforts to create .NET and Python libraries to
facilitate the use of the API, so I started to have some play on
something similar for the Actionscript language. I am certain that
Eric and the other developers at flickr has already libraries more
decent and complete for this language, since Flickr Live and Organizr
(2 killing apps) are made in Flash...

Anyway, I am working on this mostly to facilitate my future projects
with the API and to have some fun, while they don't release an
"official" bind. I don't know what approach would be the best, and if
someone have suggestions or contributions, I would love to hear it...

Initially I thought in follow the the Flickr API site, with the
dot-syntax and categories separation, just adding a way to attribute
callbacks to events (like onLoad or something similar), and to present
the results in formats that doesn't require the effort of parsing, the
idea is to have a big Flickr class that cover all methods made by many
smaller classes for every category(blogs, contacts, groups, etc) that
can act alone also. Like in the following code:

----------

my_flickr = new Flickr(APIKEY);
my_flickr.people.onFinded = function(error,obj){
if(!error){
trace(obj.username)
trace(obj.user_id)
}else{
trace(error)
}
};
my_flickr.people.findByUsername("some_username");

or

my_flickrPeopleObj = new FlickrPeople(APIKEY)
my_flickrPeopleObj.onFinded = function(error,obj){
if(!error){
trace(obj.username)
trace(obj.user_id)
}else{
trace(error)
}
}
my_flickrPeopleObj.findByUsername("some_username");

----------

I have implemented already:

blogs

* flickr.blogs.getList
* flickr.blogs.postPhoto

contacts

* flickr.contacts.getList

people

* flickr.people.findByEmail
* flickr.people.findByUsername

A kind of documentation(in poor engrish) of what i have so far(with
some usage examples) can be foud at
http://www.mamata.com.br/flickrapi/doc/index.html and the
source/package in
http://www.mamata.com.br/flickrapi/src/flickrzuardi.zip

I would appreciate any feedback and help, please feel free to use the
code if it fits some of your needs.

[]s

--
Fabricio C Zuardi
http://idomyownstunts.blogspot.com



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise