Skip to content

Commit

Permalink
Runkeeper documentation Update
Browse files Browse the repository at this point in the history
  • Loading branch information
akinsella committed May 26, 2012
1 parent 25d4ae4 commit 950559d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2116,17 +2116,17 @@ connect(
### RunKeeper OAuth (2.0)
You will first need to [register your application](http://dev.mendeley.com/applications/register/) to get the consumer key and secret.
You will first need to [register your application](http://runkeeper.com/partner/applications) to get the appId and appSecret.
```javascript
everyauth.mendeley
.consumerKey('YOUR CONSUMER KEY HERE')
everyauth.runkeeper
.appId('YOUR CONSUMER KEY HERE')
.consumerSecret('YOUR CONSUMER SECRET HERE')
.findOrCreateUser( function (sess, accessToken, accessSecret, user) {
// find or create user logic goes here
//
// e.g.,
// return usersByMendeleyId[user.main.profile_id] || (usersByMendeleyId[user.main.profile_id] = user);
// return usersByRunKeeperId[user.userID] || (usersByRunKeeperId[user.userID] = user);
})
.redirectPath('/');

Expand Down

0 comments on commit 950559d

Please sign in to comment.