private function TwitterAPIExchange::buildBaseString in Heartbeat 8
Private method to generate the base string used by cURL
Parameters
string $baseURI:
string $method:
array $params:
Return value
string Built base string
1 call to TwitterAPIExchange::buildBaseString()
- TwitterAPIExchange::buildOauth in modules/
statusmessage/ includes/ TwitterAPIExchange.php - Build the Oauth object using params set in construct and additionals passed to this method. For v1.1, see: https://dev.twitter.com/docs/api/1.1
File
- modules/
statusmessage/ includes/ TwitterAPIExchange.php, line 338
Class
- TwitterAPIExchange
- Twitter-API-PHP : Simple PHP wrapper for the v1.1 API
Code
private function buildBaseString($baseURI, $method, $params) {
$return = array();
ksort($params);
foreach ($params as $key => $value) {
$return[] = rawurlencode($key) . '=' . rawurlencode($value);
}
return $method . "&" . rawurlencode($baseURI) . '&' . rawurlencode(implode('&', $return));
}