You are here

protected function Twitter6::doRequest in Twitter 6.4

Actually performs a request.

This method can be easily overriden through inheritance.

Parameters

string $url: The url of the endpoint.

array $headers: Array of headers.

string $method: The HTTP method to use (normally POST or GET).

array $data: An array of parameters

Return value

stdClass response object.

File

./twitter.lib.php, line 27
Defines a class that overrides some methods of the Twitter libray.

Class

Twitter6
Primary Twitter API implementation class

Code

protected function doRequest($url, $headers, $method, $data) {
  return drupal_http_request($url, $headers, $method, $data);
}