BaH.Flickcurl - Flickr API

BlitzMax Forums/Brucey's Modules/BaH.Flickcurl - Flickr API

Brucey(Posted 2008) [#1]
Consider this early BETA

Available for trial via the maxmods SVN, is BaH.Flickcurl, a module to access the Flickr APIs. It provides functions for photo/video uploading, browsing, searching, adding and editing comments, groups, notes, photosets, categories, activity, blogs, favorites, places, tags and photo, video metadata.

Requirements
Lots of them :-p

BaH.Libxslt
BaH.Libxml
BaH.libcurlssl
BaH.Raptor

The first three have been available for quite some time. Raptor is currently a minimal wrap of the Raptor RDF Parser Library. All available from the same SVN repository.

If you intend trying out the examples, you should take a look here : http://librdf.org/flickcurl/api/flickcurl-auth-register.html
It describes how to get your own API keys.
Once you get the API key and Shared Secret, you need to "Edit key details", set the auth mode to Mobile/Read, and then open the provided URL in your browser. (see http://librdf.org/flickcurl/api/flickcurl-auth-authenticate.html ).
The subsequent 9-digit number is the third key (frob) you'll need to provide the api.

Once the app is authorised, it should be plain sailing from there :-)


Currently tested on Mac and Win32. Both working here.
(note OpenSSL requirements for libcurlssl on Win32).


It's still a WIP, but it appears functionally useful ;-)


Brucey(Posted 2008) [#2]
Added example_03, which shows the results of a search as thumbnails on a graphics window.

It's not the most efficient way of dragging images off the server, but it's only an example ;-)


pmc(Posted 2009) [#3]
Where can I go to download this? I've looked around and ended up at your Google Code page but I can't find a download link for this module. I'd like to try it out (I have an idea for an application that I'd like to tinker with). Sorry if I'm being thick.

-pmc


Brucey(Posted 2009) [#4]
Until a proper official release, you can get it via SVN.

You would need the following modules :
BaH.Flickcurl
BaH.Raptor
BaH.Libcurlssl
BaH.Libxml
BaH.Libxslt

The first two are flickr specific. The others are used by the first two. Handily, the last three were already available as modules.

EDIT : Oh... I already mentioned the requirements in the first post...

:-)


pmc(Posted 2009) [#5]
Yes you did. I'm sorry, but I don't know how to get it via SVN. Can you point me in the right direction? Sorry for being a dolt. :)

Alternately, I can wait for a real release. I do know how to successfully install and leverage modules.

-pmc


Brucey(Posted 2009) [#6]
Have a look here :

http://code.google.com/p/maxmods/source/checkout

The URL for SVN is : http://maxmods.googlecode.com/svn/trunk/
(the URL to which you would connect your SVN client).

Seb has posted a nice guide to using SVN with a client called TortoiseSVN here.
The guide is for other BlitzMax sources, but it should apply well for these modules.

You would create a folder in BlitzMax/mod/
called bah.mod
So the full path would be BlitzMax/mod/bah.mod/

Into this you can "checkout" the above mentioned modules from SVN.

--------------------

If that process appears a bit complex (it's not really.. once you've done it a couple of times, it's easy), then you may be best waiting a wee while.

There are some small examples included with the flickcurl module which show some of the functionality - like getting a set of images for a specific Tag.


pmc(Posted 2009) [#7]
Sounds easy. Thanks for the pointer. I'm not sure I woulda figured that out without your help.

-pmc