Removed unused POST route for instagram api example
parent
f32ac49bb6
commit
5ce1cb4444
1
app.js
1
app.js
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
});
|
||||
|
||||
};
|
Loading…
Reference in New Issue