Skip to content

Returns list of the most recent photos from given user's contacts

Notifications You must be signed in to change notification settings

npm-flickr/flickr-user-feed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flickr-user-feed

Returns list of the most recent photos from given user's contacts

Install

$ npm install flickr-user-feed

Usage

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

feed('user-id', function (error, result) {
  result.page
  // => 1

  result.pages
  // => 22

  result.total
  // => 2151

  result.perPage
  // => 100

  result.photos.length
  // => 98

  result.photos[0]
  // => { "id": "14444570971", "secret": "4974012683", "server": "3838", "farm": 4, "owner": "32860537@N06", "username": "foo bar", "title": "qux corge", "ispublic": 1, "isfriend": 0, "isfamily": 0 }
});

Options:

  • count
  • page
feed('user-id', { page: 10 }, function (error, result) {
  result.page
  // => 10
36
});

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

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

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

About

Returns list of the most recent photos from given user's contacts

Resources

Stars

Watchers

Forks

Packages

No packages published