|
6 | 6 | * A Twitter library in PHP.
|
7 | 7 | *
|
8 | 8 | * @package codebird
|
9 |
| - * @version 3.1.0 |
| 9 | + * @version 3.2.0-dev |
10 | 10 | * @author Jublo Solutions <support@jublo.net>
|
11 | 11 | * @copyright 2010-2016 Jublo Solutions <support@jublo.net>
|
12 | 12 | * @license https://opensource.org/licenses/GPL-3.0 GNU General Public License 3.0
|
@@ -72,6 +72,7 @@ class Codebird
|
72 | 72 | 'sandbox' => 'https://ads-api-sandbox.twitter.com/0/'
|
73 | 73 | ],
|
74 | 74 | 'media' => 'https://upload.twitter.com/1.1/',
|
| 75 | + 'publish' => 'https://publish.twitter.com/', |
75 | 76 | 'oauth' => 'https://api.twitter.com/',
|
76 | 77 | 'rest' => 'https://api.twitter.com/1.1/',
|
77 | 78 | 'streaming' => [
|
@@ -392,6 +393,7 @@ class Codebird
|
392 | 393 | 'collections/update',
|
393 | 394 | 'direct_messages/destroy',
|
394 | 395 | 'direct_messages/new',
|
| 396 | + 'dm/new', |
395 | 397 | 'favorites/create',
|
396 | 398 | 'favorites/destroy',
|
397 | 399 | 'friendships/create',
|
@@ -508,7 +510,7 @@ class Codebird
|
508 | 510 | /**
|
509 | 511 | * The current Codebird version
|
510 | 512 | */
|
511 |
| - protected static $_version = '3.1.0'; |
| 513 | + protected static $_version = '3.2.0-dev'; |
512 | 514 |
|
513 | 515 | /**
|
514 | 516 | * The Request or access token. Used to sign requests
|
@@ -1971,6 +1973,8 @@ protected function _getEndpoint($method, $method_template)
|
1971 | 1973 | $url = self::$_endpoints['oauth'] . $method;
|
1972 | 1974 | } elseif ($this->_detectMedia($method_template)) {
|
1973 | 1975 | $url = self::$_endpoints['media'] . $method . '.json';
|
| 1976 | + } elseif ($method_template === 'statuses/oembed') { |
| 1977 | + $url = self::$_endpoints['publish'] . 'oembed'; |
1974 | 1978 | } elseif ($variant = $this->_detectStreaming($method_template)) {
|
1975 | 1979 | $url = self::$_endpoints['streaming'][$variant] . $method . '.json';
|
1976 | 1980 | } elseif ($this->_detectBinaryBody($method_template)) {
|
|
0 commit comments