Skip to content

Instantly share code, notes, and snippets.

@fruchtose
Created November 22, 2012 19:29
Show Gist options
  • Save fruchtose/4132624 to your computer and use it in GitHub Desktop.
Save fruchtose/4132624 to your computer and use it in GitHub Desktop.
Everyauth Meetup Backbone Analogue
// Initialization style 1
var meetup = new Everyauth.OAuth({
name: 'meetup',
oauthHost: 'https://secure.meetup.com',
apiHost: 'https://api.meetup.com/2',
accessTokenParams: {
grant_type: 'authorization_code'
},
// etc.
});
// Initialization style 2
var meetup = new Everyauth.OAuth();
meetup.set({
name: 'meetup',
oauthHost: 'https://secure.meetup.com',
apiHost: 'https://api.meetup.com/2',
accessTokenParams: {
grant_type: 'authorization_code'
},
// etc.
});
// Getting a value
var oauthHost = meetup.get("oauthHost");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment