public function OAuthRequest::to_postdata in OAuth 1.0 6
Same name and namespace in other branches
- 6.3 lib/OAuth.php \OAuthRequest::to_postdata()
- 7.3 lib/OAuth.php \OAuthRequest::to_postdata()
builds the data one would send in a POST request
1 call to OAuthRequest::to_postdata()
- OAuthRequest::to_url in ./
OAuth.php - builds a url usable for a GET request
File
- ./
OAuth.php, line 347
Class
Code
public function to_postdata() {
/*{{{*/
$total = array();
foreach ($this->parameters as $k => $v) {
$total[] = OAuthUtil::urlencodeRFC3986($k) . "=" . OAuthUtil::urlencodeRFC3986($v);
}
$out = implode("&", $total);
return $out;
}