Skip to content

kevincobain2000/node-flickr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

npm install node-flickr

ALternatively,

npm install https://github.com/kevincobain2000/node-flickr/tarball/master

Set Up

var Flickr = require("node-flickr");
var keys = {"api_key": "XXX"}
flickr = new Flickr(keys);

Usage

flickr.get("photos.search", {"tags":"cat,dogs"}, function(err, result){
    if (err) return console.error(err);
    console.log(result.photos);
});

flickr.get("photos.search", {"tags":"cat,dogs","user_id":123456}, function(err, result){
    if (err) return console.error(err);
    console.log(result.photos);
});

http://www.flickr.com/services/api/flickr.photos.getContext.html

flickr.get("photos.getContext", {"photo_id":9638138263}, function(err, result){
    if (err) return console.error(err);
    console.log(result);
});

http://www.flickr.com/services/api/flickr.photos.getSizes.html

flickr.get("photos.getSizes", {"photo_id":9638138263}, function(err, result){
    if (err) return console.error(err);
    console.log(result.sizes);
});

For More Methods refer to http://www.flickr.com/services/api/

About

npm module for flickr api

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •