File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -65,12 +65,6 @@ class Codebird
65
65
*/
66
66
private $ _endpoint_oauth = 'https://api.twitter.com/ ' ;
67
67
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
-
74
68
/**
75
69
* The Request or access token. Used to sign requests
76
70
*/
@@ -682,14 +676,8 @@ private function _detectFilenames($method, &$params)
682
676
*/
683
677
private function _getEndpoint ($ method )
684
678
{
685
- $ upload_methods = array (
686
- // Tweets
687
- 'statuses/update_with_media '
688
- );
689
679
if (substr ($ method , 0 , 6 ) == 'oauth/ ' ) {
690
680
$ url = $ this ->_endpoint_oauth . $ method ;
691
- } elseif (in_array ($ method , $ upload_methods )) {
692
- $ url = $ this ->_endpoint_upload . $ method . '.json ' ;
693
681
} else {
694
682
$ url = $ this ->_endpoint . $ method . '.json ' ;
695
683
}
You can’t perform that action at this time.
0 commit comments