Coder Social home page Coder Social logo

flickrj's Introduction

FORK DETAILS
========================

There are two minor differences between this version of the library and the original one (v 1.2).

1. Views field support for flickr.photos.search method
------------------------
In spite of the fact that flickrj photo.getViews method is deprecated, flickr.photos.search API call still has “views” as one of the options for “extras” argument. See http://www.flickr.com/services/api/flickr.photos.search.html

Original version of the library does not support putting that value into Photo object, and this issue is fixed in the fork. Methods Photo.getViews and Photo.setViews are left deprecated as other API methods e.g. flickr.photos.getInfo do not return value of views. To get it you have to call flickr.stats.getPhotoStats, but this works only for photos by premium users.

2. Extras.DESCRIPTION added
------------------------
This is to support description in flickr.photos.search results.

Usage example
------------------------
  // Flickr flickr is defiened somewhere before
	PhotosInterface photos = flickr.getPhotosInterface();
	SearchParameters criteria = new SearchParameters();
	HashSet<String> extras = new HashSet<String>();
	extras.add(Extras.GEO);
	extras.add(Extras.VIEWS); // <--
	extras.add(Extras.DESCRIPTION); // <--
	criteria.setExtras(extras);
	criteria.setAccuracy(16);
	criteria.setBBox(-0.1931, 51.4909, -0.0818, 51.5351); // Central London
	PhotoList photoList = photos.search(criteria, 250, 1);


Jar file
------------------------
Jar file is in the “build” directory. You can use that or just fork the source and build the project on your own machine.



ORIGINAL README
========================
This is a Java API which wraps the REST-based Flickr API
(information available at http://www.flickr.com/services/api/).

This API has been tested with JDK 1.4 and JDK 1.5. The default
distribution is build with JDK 1.5.

Please note: this library is not thread safe.

To use the API just construct a instance of the class
com.aetreion.flickr.Flickr and request the interfaces which you need
to work with.  For example, to send a test ping to the Flickr service:

String apiKey = YOUR_API_KEY
Flickr f = new Flickr(apiKey);
TestInterface testInterface = f.getTestInterface();
Collection results = testInterface.echo(Collections.EMPTY_LIST);

An API key is required to use this API.  You should contact Flickr to
acquire an API key.  More information is available at:
http://www.flickr.com/services/api/

Comments and questions should be sent to [email protected].

-Anthony Eden

flickrj's People

Contributors

kachkaev avatar mohlendo avatar thom-nic avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.