Skip to content

npm-flickr/flickr-user

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flickr-user

Find a Flickr user by username. Unlike Flickr's official API, this module assumes that username is whatever appears in the URL.

e.g: if user's url is flickr.com/azer, its user name is "azer"

Install

$ npm install flickr-user

Usage

var client = require('flickr-client')({
  key: 'api-key'
});

var user = require('flickr-user')({
  key: 'api-key'
})

user('azer', function (error, azer) {

  azer.id
  // => 98269877@N00

  azer.name
  // => "azer"

})

flickr-client can be passed to avoid repeating auth options:

var client = require('flickr-client')({
  key: 'api-key'
});

var user = require('flickr-user')(client)