apis.facebook.auth().success(function() { apis.facebook.me() }) apis.google.maps() apis.youtube.search('bob marley')
apis.gravatar('team@webshell.io')
{
"dc":"us1",
"login_url":"https://login.mailchimp.com",
"api_endpoint":"https://us1.api.mailchimp.com"
}
OAuth.popup('facebook', function(err, res) { if (err) { // do something with error }
// the access token is res.access_token !
})
OAuth.popup('facebook', function(err, res) { if (err) { // do something with error }
res.get('/me')
.done(function(data) { alert('Hello ' + data.name) }) })
OAuth.popup('twitter', function(err, res) { if (err) { // do something with error }
res.get('/1.1/account/verify_credentials.json') .done(function(data) { alert('Hello ' + data.name) }) })
Question ?
thyb@oauth.io | @thibaud_arnault