Posts Tagged ‘API’

Promoting QtFlickr API

Sunday, December 20th, 2009

Couple days ago I found QtFlickr API written by Evgeni Gordejev. You can check it out from http://www.qtflickr.com. As the name QtFlickr implies, it’s a Qt API for using Flickr API. It provides a simple interface for request creation, response handling and photo uploading. It’s a very small layer, only 5  classes and two structs. Like Qt, the QtFlickr can be run in the following platforms: Windows, Linux, Mac OS X, Symbian and Maemo.

The main class QtFlickr basically provides a nice wrapper class with convenience methods. See the interface below:

QtFlickr( const QString &apiKey,
   const QString &apiSecret,
   QObject *parent = 0 );

~QtFlickr();

void setToken ( const QString &token );
QUrl authorizationUrl ( const QString &frob,
   const QString &perms = "write" );

int get ( const Method &method,
   const Request &request = Request(),
   void* userData = 0 );

int post ( const Method &method,
   const Request &request = Request(),
   void* userData = 0 );

int upload ( const Photo &photo,
   const Request &request = Request(),
   void* userData = 0 );

signals:

void requestFinished ( int reqId,
   Response data,
   ErrorData err,
   void* userData );

void uploadProgress ( int percent );

(more…)