Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var request = require('request');
module.exports = {
"post": function (req, res, next) {
req.azureMobile.user.getIdentity("google").then(function(result) {
request.get('https://www.googleapis.com/plus/v1/people/me', {
headers: {
"Authorization": "Bearer " + result.google.access_token
}
}, function(err, apiResult) {
var results = JSON.parse(apiResult.body);
res.send(apiResult.statusCode, { result: results });
});
});
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.