New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pandas

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pandas

Flickr's Pandas api

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Pandas

Streaming API for Flickr's Panda API

Usage

Panda( apiKey )

You'll need to register an API key with flickr. This is not your secret key.

Calling 'Panda' without an apiKey or a non-string apiKey will throw an Error

Usage:

var Panda = require( 'pandas' )
  , panda = new Panda( 'myApiKey' )

getList()

Returns a ReadableStream that emits a data event for every panda name.

Usage:

var pandaNameStream = panda.getList()
pandaNameStream.on( 'data', function( data ) {
  console.log( data )
})

getPhotos( pandaName )

Returns a ReadableStream that emits a data event for every photo the panda tells us about

var pandaPhotoStream = panda.getPhoto( 'example panda' )
pandaPhotoStream.on( 'data', function( photo ) {
  //if the panda has 10 photos, this will be called 10 times
  console.log( JSON.stringify( photo ) )
})

See the example.js file for an example of it in action. You'll need to create your own api_settings.json file with a key called api_key and a value which is your Flickr API key

Keywords

FAQs

Package last updated on 05 Oct 2012

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc