Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

flickr-favorites

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flickr-favorites

List favorite photos of a Flickr user

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

flickr-favorites

List favorite photos of a Flickr user

Install

$ npm install flickr-favorites

Usage

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

favorites('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": "14434823753", "owner": "67577064@N04", "secret": "b5ab59b21c", "server": "2911", "farm": 3, "title": "_6249-1", "ispublic": 1, "isfriend": 0, "isfamily": 0, "date_faved": "1402731490" }
});

Options:

  • min_fave_date
  • max_fave_date
  • per_page
  • page
favorites('user-id', { page: 10 }, function (error, result) {
  result.page
  // => 10
});

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

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

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

Keywords

flickr

FAQs

Package last updated on 12 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts