]> git.mxchange.org Git - friendica.git/blobdiff - library/twitteroauth.php
Double check for maximum number of workers
[friendica.git] / library / twitteroauth.php
index 7f3dcba4d77728bd090af034962bd95bb1d52c4d..24e831a9244b517834aa400b4064af7774e390f5 100644 (file)
@@ -18,7 +18,7 @@ class TwitterOAuth {
   /* Contains the last API call. */
   public $url;
   /* Set up the API root URL. */
-  public $host = "https://api.twitter.com/1/";
+  public $host = "https://api.twitter.com/1.1/";
   /* Set timeout default. */
   public $timeout = 30;
   /* Set connect timeout. */
@@ -184,6 +184,8 @@ class TwitterOAuth {
     switch ($method) {
     case 'GET':
       return $this->http($request->to_url(), 'GET');
+    case 'UPLOAD':
+      return $this->http($request->get_normalized_http_url(), 'POST', $request->to_postdata(true));
     default:
       return $this->http($request->get_normalized_http_url(), $method, $request->to_postdata());
     }