-
Notifications
You must be signed in to change notification settings - Fork 27
API Key & OAuth
jkutianski edited this page Dec 20, 2014
·
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 });