@@ -130,8 +130,8 @@ var assert = require('assert'); | ||
| var shared = self._isSharedMedia; | ||
| var media_category = 'dm_image'; | ||
| var media_category = 'tweet_image'; | ||
| if (mediaType.toLowerCase().indexOf('gif') > -1) { | ||
| media_category = 'dm_gif'; | ||
| media_category = 'tweet_gif'; | ||
| } else if (mediaType.toLowerCase().indexOf('video') > -1) { | ||
| media_category = 'dm_video'; | ||
| media_category = 'tweet_video'; | ||
| } | ||
@@ -138,0 +138,0 @@ |
+1
-1
| { | ||
| "name": "twit", | ||
| "description": "Twitter API client for node (REST & Streaming)", | ||
| "version": "2.2.10", | ||
| "version": "2.2.11", | ||
| "author": "Tolga Tezel", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
+10
-7
@@ -165,3 +165,3 @@ # twit | ||
| ## var T = new Twit(config)` | ||
| ## `var T = new Twit(config)` | ||
@@ -191,3 +191,3 @@ Create a `Twit` instance that can be used to make requests to Twitter's APIs. | ||
| ## T.get(path, [params], callback)` | ||
| ## `T.get(path, [params], callback)` | ||
| GET any of the REST API endpoints. | ||
@@ -210,7 +210,7 @@ | ||
| ## T.post(path, [params], callback)` | ||
| ## `T.post(path, [params], callback)` | ||
| POST any of the REST API endpoints. Same usage as `T.get()`. | ||
| ## T.postMediaChunked(params, callback)` | ||
| ## `T.postMediaChunked(params, callback)` | ||
@@ -228,9 +228,9 @@ Helper function to post media via the POST media/upload (chunked) API. `params` is an object containing a `file_path` key. `file_path` is the absolute path to the file you want to upload. | ||
| ## T.getAuth()` | ||
| ## `T.getAuth()` | ||
| Get the client's authentication tokens. | ||
| ## T.setAuth(tokens)` | ||
| ## `T.setAuth(tokens)` | ||
| Update the client's authentication tokens. | ||
| ## T.stream(path, [params])` | ||
| ## `T.stream(path, [params])` | ||
| Use this with the Streaming API. | ||
@@ -584,2 +584,5 @@ | ||
| ### 2.2.11 | ||
| * Fix media_category used for media uploads (thanks @BooDoo) | ||
| ### 2.2.10 | ||
@@ -586,0 +589,0 @@ * Update maximum Tweet characters to 280 (thanks @maziyarpanahi) |
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
641073
0.01%678
0.44%