gaeflickrlib

Flickr API kit for Google App Engine
Download

gaeflickrlib Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Geoffrey Spear
  • Publisher web site:
  • http://www.geoffreyspear.com/

gaeflickrlib Tags


gaeflickrlib Description

Flickr API kit for Google App Engine The gaeflicklib library is configured in gaeflconfig.py, which should be located somewhere in your python path; in practice it should probably be placed in the root of your App Engine application.Presently, the only configuration options are:API_KEY = 'your API key'API_SECRET = 'your API secret'filling in the API key and secret provided by Flickr when you sign up for a key.If gaeflickrlib cannot find a module called gaeflconfig.py, it will issue a warning.Getting StartedThere are 2 ways to create the GaeFlickrLib object, which provides the connection to the Flickr API.You can create it yourself, manually:from gaeflickrlib import GaeFlickrLibflickr = GaeFlickrLib(api_key = 'some key', api_secret = 'some secret', token = 'some user\'s credentials')photos = flickr.photos_search(text = '...')where any of the parameters are option if gaeflconfig.py is provided (otherwise, api_key is required).Or, you can use the @FlickrAuthed decorator for your webapp request handler methods, which will automatically handle auth sessions with Flickr and create a flickr object for you in the method’s namespace:from gaeflickrlib import FlickrAuthedclass MyHandler(webapp.RequestHandler): @FlickrAuthed def get(self): photos = flickr.photos_search(text = '...')Note: this method requires the use of the FlickrAuthCallbackHandler request handler. Requirements: · Python


gaeflickrlib Related Software