Just as easily as we used the Digg API in our first plugin, we will use the Flickr API to enhance our Insights plugin further.
In order to use Flickr API, you need to first register for an API key at http://www.flickr.com/services/api/keys/apply/.
This in turn allows you to use all of the Flickr services including searching and uploading of photos.
In order to complete our plugin, we will need to learn how to use the search functionality of Flickr.
Let's introduce the Flickr API to our plugin. This will allow you to display a list of images from Flickr and insert them into your article with a click of a mouse!
Modify
the draw_panel()
function to include two radio checkboxes allowing us to select posts or images:function draw_panel() { echo ' <p>Enter keywords you would like to search for and press the Search button.</p> <input name="insights-radio" type="radio" checked="" value="1" /><label> Posts </label...