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; }
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; }
/** * 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); } }
/** * 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); }