suburbia

Premshree's (品速力) Personal Weblog

etc.

Ruby API for Flickr, and Moi
suburbia
[info]premshree

I was kinda shocked to read why’s post. I don’t know if it’s true, but seems like there’s no Ruby API for Flickr. So, yeah, I wrote one—Ruby API for Flickr. You’ll need an API key, of course. Oh yeah, I need to thank James Clarke for his Python wrapper.

Usage? Here you go »

user = User.new('18645779@N00') # that shit is the userid, btw
user.getPhotosets

photoset = Photoset.new('4784077', '', '4784077')

photoset.create(Photo.new('4784077'), 'Test set')

group = Photo.new('6714892')
group.tags_getListPhoto

user = Search.new('18645779@N00')
user.photosSearch(['bombay', 'bangalore'])

people = Search.new
people.people_getPublicPhotos('44124329962@N01')

people = Search.new
people.favorites_getList('44124329962@N01')

There, I’ve given you one reason less not to use Ruby

Other stuff »

My brother recently (yesterday?) took part in a web designing competition (he’s damn good, by the way) in Bombay. The folks provided the poor guy with emacs!

Speaking of Bombay, I’ll be in Bombay this Friday (long weekend, you see). Back on Monday, of course. [info]eh_donia, you’re up for some beer, no?

Oh yeah, my long day lasted for a little more than 40 hours. Oh, did I tell you that Saturday was spent at Cosmo and [info]klooloola’s place? A lot of us. Awesome fun. So I’ve been shit busy, you see. I need food, you see. My colleagues are bugging me now, you see.