Nothing Particularly Magnificent

npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

instapics

0.1.5 • Public • Published

instapics

NPM version Dependency Status

A node.js wrapper for Instagram API.

Installation

$ npm install instapics

Examples

var Instapics = require('instapics');
 
var pics = new Instapics({
  token: 'OAuth2 access_token'
});
 
pics.feed({count: 5}, function(error, data) {
  if (error) {
    throw new Error(error);
  }
 
  console.log(data);
});
Instapics = require 'instapics'
 
pics = new Instapics token: 'OAuth2 access_token'
 
pics.feed count: 5(error, data) ->
  throw new Error error if error
  console.log data

How to retrieve instagram OAuth2 access_token

Grab latest source code and install all dev dependencies

$ npm link

Change your host, client id, client secret in examples/get-access-token.coffee and after that run examples/get-access-token.coffee

$ coffee examples/get-access-token.coffee

API

  • info(user_id, callback)
  • recent(user_id[, params], callback)
  • feed([params, ]callback)

Author

License

The MIT License, see the included license.md file.

Bitdeli Badge

install

npm i instapics

Downloadsweekly downloads

10

version

0.1.5

license

MIT

homepage

simonenko.su

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability