instajs
NnodeJS wrapper for the public Instagram API
Last updated 4 years ago by coderocket .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install instajs 
SYNC missed versions from official npm registry.

InstaJS

Just another Instagram API wrapper for your NodeJS Project.

Install

npm install --save instajs

Usage

Use InstaJS as you want. You can use classic callbacks or you can use pomises.

instajs = require('instajs');

// use it without any options just pass your access_token
var insta = new instajs('[your instagram access_token]')

// or you can pass an object with some additional options
var insta = new instajs({
  timeout: 20000, // timeout for API calls in ms
  limit: 200, // limit for returned objects of the API calls
  access_token: '[your instagram access_token]' //your API  access_token
});

//Usage with promises
insta.getUser('self').then(function(data){
  //do something with data
}).catch(function(err){
  //handle error
});

//Usage with callbacks
insta.getUser('self', function(err, data){
  if (err) {
    //handle error
  }

  //do something with data
});

Documentation

Documentation of all the moethods can be found here

Current Tags

  • 0.1.2                                ...           latest (4 years ago)

3 Versions

  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 2
Last Month 3
Dependencies (3)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |