Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A node.js wrapper for the Instagram API
CoffeeScript
tag: 0.0.2

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples
lib
src
.gitignore
Cakefile
README.md
package.json

README.md

Instapics

A Node.JS wrapper for Instagram API.

How to use with JavaScript

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);
  }

  return console.log(data);
});

Or with CoffeeScript

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

Install with NPM

npm install instapics

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

Something went wrong with that request. Please try again.