fix api usage

This commit is contained in:
Girish Ramakrishnan 2018-06-06 16:00:51 -07:00
parent a7e693c4ed
commit f9949c11a3

View file

@ -253,7 +253,7 @@ return done();
token = result.body.accessToken; token = result.body.accessToken;
superagent.get('https://' + inspect.apiEndpoint + '/api/v1/user/profile') superagent.get('https://' + inspect.apiEndpoint + '/api/v1/profile')
.query({ access_token: token }).end(function (error, result) { .query({ access_token: token }).end(function (error, result) {
if (error) return done(error); if (error) return done(error);
if (result.statusCode !== 200) return done(new Error('Get profile failed with status ' + result.statusCode)); if (result.statusCode !== 200) return done(new Error('Get profile failed with status ' + result.statusCode));