Permalink
Browse files

Minor improvements in example

  • Loading branch information...
1 parent 668a291 commit 04faa3bf2b1f4ec710414c6ec7231b24767b2f89 @mikeal mikeal committed Nov 17, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 README.md
View
@@ -96,13 +96,14 @@ You can still use intermediate proxies, the requests will still follow HTTP forw
## OAuth Signing
```javascript
+// Twitter OAuth
var qs = require('querystring')
, oauth =
- { callback: 'http://mysite.com/callback/'+this._id
+ { callback: 'http://mysite.com/callback/'
, 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) {
// Assume by some stretch of magic you aquired the verifier

0 comments on commit 04faa3b

Please sign in to comment.