Skip to content

dphiffer/flickr-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

flickr.js

A simple JavaScript wrapper for the Flickr API. Only implements methods that don't require authentication. Uses jQuery and JSONP to retrieve data.

Requirements

Usage

var apiKey = '...';
var flickr = new Flickr(apiKey);
flickr.photos.search({
    tags: 'cat'
}, function(response) {
    var first = response.photos.photo[0];
    var src = first.src('b'); // 'b' is an image size (1024 on longest side)
    var href = first.href();
    $('body').append('<a href="' + href + '"><img src="' + src + '"></a>');
});

Designed for the JavaScript Console

Screenshot of Firebug JavaScript Console

See also

About

A simple JavaScript wrapper for the Flickr API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published