Skip to content

Instantly share code, notes, and snippets.

View gate8team's full-sized avatar
👨‍💻

Anton Shabanov gate8team

👨‍💻
View GitHub Profile
@gate8team
gate8team / instagram-users-diff.js
Created March 4, 2016 17:55
Allows us to retrieve the diff of users we're following and the one follows us.
var request = require('request-promise');
var Q = require('q');
var _ = require('lodash');
var ACCESS_TOKEN = {
PRIMARY: 'YOU_ACCESS_TOKEN'
};
var SELF_FOLLOWS_API_ENDPOINT = 'https://api.instagram.com/v1/users/self/follows?access_token={token}';
var FOLLOWED_BY_API_ENDPOINT = 'https://api.instagram.com/v1/users/self/followed-by?access_token={token}';
var promises = [];