Skip to content
This repository has been archived by the owner on Feb 13, 2018. It is now read-only.

Commit

Permalink
Version 1.8.0
Browse files Browse the repository at this point in the history
* getAuthUrl options (#40)
* chunked upload for all media types (#41)
* unretweet endpoint (#42)
  • Loading branch information
reneraab committed Sep 5, 2016
1 parent 1fb5678 commit 1d2dff2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ twitter.getRequestToken(function(error, requestToken, requestTokenSecret, result
If no error has occured, you now have a `requestToken` and a `requestTokenSecret`. You should store them somewhere (e.g. in a session, if you are using express), because you will need them later to get the current user's access token, which is used for authentification.

### Step 3: Getting an Access Token ###
Redirect the user to `https://twitter.com/oauth/authenticate?oauth_token=[requestToken]`. `twitter.getAuthUrl(requestToken)` also returns that URL.
Redirect the user to `https://twitter.com/oauth/authenticate?oauth_token=[requestToken]`. `twitter.getAuthUrl(requestToken, options)` also returns that URL (the options parameter is optional and may contain a boolean `force_login` and a String `screen_name` - see the Twitter API Documentation for more information on these parameters).
If he allows your app to access his data, Twitter will redirect him to your callback-URL (defined in Step 1) containing the get-parameters: `oauth_token` and `oauth_verifier`. You can use `oauth_token` (which is the `requestToken` in Step 2) to find the associated `requestTokenSecret`. You will need `requestToken`, `requestTokenSecret` and `oauth_verifier` to get an Access Token.
```javascript
twitter.getAccessToken(requestToken, requestTokenSecret, oauth_verifier, function(error, accessToken, accessTokenSecret, results) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-twitter-api",
"version": "1.7.4",
"version": "1.8.0",
"description": "Simple module for using Twitter's API in node.js",
"keywords": ["twitter", "oauth", "rest", "streaming"],
"homepage": "https://github.com/reneraab/node-twitter-api",
Expand Down
2 changes: 1 addition & 1 deletion twitter.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use strict";
var VERSION = "1.7.4",
var VERSION = "1.8.0",
querystring = require("querystring"),
oauth = require("oauth"),
request = require("request"),
Expand Down

0 comments on commit 1d2dff2

Please sign in to comment.