Skip to content

Instantly share code, notes, and snippets.

@aesnyder
Created April 4, 2013 19:15
Show Gist options
  • Save aesnyder/5313279 to your computer and use it in GitHub Desktop.
Save aesnyder/5313279 to your computer and use it in GitHub Desktop.
node streaming instagram
express = require('express')
app = express()
Instagram = require('instagram-node-lib')
Instagram.set 'client_id', '110a0f5f4aae44c58aa75dadc340f9ac'
Instagram.set 'client_secret', 'd198ac94655a4670bb3dedd0f220caab'
Instagram.set('callback_url', 'http://5aqc.localtunnel.com')
Instagram.tags.info
name: 'blue',
complete: (data) ->
console.log data
app.get '/', (req, res) ->
console.log req
app.get '/callback', (req, res) ->
console.log req, res
app.get '/subscribe', (req, res) ->
Instagram.subscriptions.handshake(req, res)
console.log req, res
app.listen(80)
Instagram.media.subscribe({ lat: 48.858844300000001, lng: 2.2943506, radius: 1000 });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment