/** * builds the data one would send in a POST request */ public function to_post_data() { return \Zeflasher\OAuth\OAuthUtil::build_http_query($this->_parameters); }
/** * The body request parameters (excluded oauth), sorted and concatenated into a normalized string. * @return string */ public function get_query_parameters() { // Grab all parameters $params = array_merge($this->_parameters); foreach ($params as $key => $image) { if (preg_match("/^oauth_.*/", $key, $matches)) { unset($params[$key]); } } return \Zeflasher\OAuth\OAuthUtil::build_http_query($params); }