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"
$ npm install flickr-user
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)