Skip to content

Commit

Permalink
Removed unused POST route for instagram api example
Browse files Browse the repository at this point in the history
  • Loading branch information
sahat committed Apr 30, 2014
1 parent f32ac49 commit 5ce1cb4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ app.get('/api/venmo', passportConf.isAuthenticated, passportConf.isAuthorized, a
app.post('/api/venmo', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.postVenmo);
app.get('/api/linkedin', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.getLinkedin);
app.get('/api/instagram', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.getInstagram);
app.post('/api/instagram', passportConf.isAuthenticated, passportConf.isAuthorized, apiController.postInstagram);

/**
* OAuth routes for sign-in.
Expand Down
14 changes: 0 additions & 14 deletions controllers/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -539,18 +539,4 @@ exports.getInstagram = function(req, res, next) {
popularImages: results.popularImages
});
});
};

exports.postInstagram = function(req, res, next) {
var token = _.findWhere(req.user.tokens, { kind: 'instagram' });

ig.use({ access_token: token });
ig.use({ client_id: secrets.instagram.clientID, client_secret: secrets.instagram.clientSecret });



ig.user_search('13reasons', function(err, users, limit) {
console.log(users);
});

};

0 comments on commit 5ce1cb4

Please sign in to comment.