The Flickr API sample project shows how you can get information from Flickr. The project API has the following structure:
|The Flickr API uses the same path to access all resources: /services/rest. The method is specified as a request parameter.
To open the project
From the dashboard
Find the project you need in the Sample Projects section:
|Click and leave only ReadyAPI Test selected to limit the options to ReadyAPI Test and Online Service samples.
To use the project
To use the Flickr API, you need an API-key. To get it, register in the Flickr App Garden.
The sample project defines an ApiKey project-level property that will be used as the key. It is then used in all requests with the help of property expansions:
The project contains a single sample test case with four requests that validate their responses:
|Gets the current list of Flickr Interestingness in the JSON format and checks that the response contains 100 entries.
|Find User Request
|Searches for a user by username and validates the content of the XML response to contain that user's details.
|Gets the list of camera brands used in photos on Flickr in the SOAP format and checks for Nikon cameras.
|Searches for the Stockholm place and validates that there is at least one hit in the JSON response.