Skip to content

Commit

Permalink
Minor improvements in example
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeal committed Nov 17, 2011
1 parent 668a291 commit 04faa3b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -96,13 +96,14 @@ You can still use intermediate proxies, the requests will still follow HTTP forw
## OAuth Signing ## OAuth Signing


```javascript ```javascript
// Twitter OAuth
var qs = require('querystring') var qs = require('querystring')
, oauth = , oauth =
{ callback: 'http://mysite.com/callback/'+this._id { callback: 'http://mysite.com/callback/'
, consumer_key: CONSUMER_KEY , consumer_key: CONSUMER_KEY
, consumer_secret: CONSUMERSECRET , consumer_secret: CONSUMER_SECRET
} }
, url = 'http://api.twitter.com/oauth/request_token' , url = 'https://api.twitter.com/oauth/request_token'
; ;
request.post({url:url, oauth:oauth}, function (e, r, body) { request.post({url:url, oauth:oauth}, function (e, r, body) {
// Assume by some stretch of magic you aquired the verifier // Assume by some stretch of magic you aquired the verifier
Expand Down

0 comments on commit 04faa3b

Please sign in to comment.