Example #1
0
 function post($url, $params = array(), $multi = false)
 {
     $query = "";
     if ($multi) {
         $query = OAuthUtil::build_http_query_multi($params);
     } else {
         $query = OAuthUtil::build_http_query($params);
     }
     $response = $this->http($url, 'POST', $query, $multi);
     return $response;
 }
Example #2
0
 function post($url, $params = array(), $multi = false)
 {
     $query = "";
     if ($multi) {
         $query = OAuthUtil::build_http_query_multi($params);
     } else {
         $query = OAuthUtil::build_http_query($params);
     }
     $response = $this->http($url, 'POST', $query, $multi);
     if ($this->format === 'json' && $this->decode_json) {
         return json_decode($response);
     }
     return $response;
 }
Example #3
0
 /** 
  * builds the data one would send in a POST request 
  */
 public function to_postdata($multi = false)
 {
     if ($multi) {
         return OAuthUtil::build_http_query_multi($this->parameters);
     } else {
         return OAuthUtil::build_http_query($this->parameters);
     }
 }
Example #4
0
 /** 
  * builds the data one would send in a POST request 
  */ 
 public function to_postdata( $multi = false ) {
 //echo "multi=" . $multi . '`';
 if( $multi )
 	return OAuthUtil::build_http_query_multi($this->parameters); 
 else 
     return OAuthUtil::build_http_query($this->parameters); 
 }