8000 Drop separate media upload method as noted at https://dev.twitter.com… · UltraSimplified/codebird-php@d313d45 · GitHub
[go: up one dir, main page]

Skip to content

Commit d313d45

Browse files
committed
Drop separate media upload method as noted at https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media
1 parent 3889ff5 commit d313d45

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

codebird.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,6 @@ class Codebird
6565
*/
6666
private $_endpoint_oauth = 'https://api.twitter.com/';
6767

68-
/**
69-
* The API endpoint to use for uploading tweets with media
70-
* see https://dev.twitter.com/discussions/1059
71-
*/
72-
private $_endpoint_upload = 'https://upload.twitter.com/1.1/';
73-
7468
/**
7569
* The Request or access token. Used to sign requests
7670
*/
@@ -682,14 +676,8 @@ private function _detectFilenames($method, &$params)
682676
*/
683677
private function _getEndpoint($method)
684678
{
685-
$upload_methods = array(
686-
// Tweets
687-
'statuses/update_with_media'
688-
);
689679
if (substr($method, 0, 6) == 'oauth/') {
690680
$url = $this->_endpoint_oauth . $method;
691-
} elseif (in_array($method, $upload_methods)) {
692-
$url = $this->_endpoint_upload . $method . '.json';
693681
} else {
694682
$url = $this->_endpoint . $method . '.json';
695683
}

0 commit comments

Comments
 (0)
0