-
Notifications
You must be signed in to change notification settings - Fork 27
API Key & OAuth
Juan Pablo Kutianski edited this page Jun 10, 2015
·
4 revisions
var meetup = require('../lib/meetup')({
key: 'yourAPIkey'
});
var meetup = require('../lib/meetup')({
oauth: JSON.parse(process.env.MEETUP_OAUTH)
});
and then
meetup.getOAuthRequestToken(function(error, Url) {
response.writeHead(302, {
'Location': Url
});
response.end();
});
after recive the OAuth access token
meetup.getOAuthAccessToken(oauth_token, function() {
//API commands goes here
});