You are here

class Twitter6 in Twitter 6.4

Primary Twitter API implementation class

Hierarchy

Expanded class hierarchy of Twitter6

File

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

View source
class Twitter6 extends Twitter {

  /**
   * Actually performs a request.
   *
   * This method can be easily overriden through inheritance.
   *
   * @param string $url
   *   The url of the endpoint.
   * @param array $headers
   *   Array of headers.
   * @param string $method
   *   The HTTP method to use (normally POST or GET).
   * @param array $data
   *   An array of parameters
   * @return
   *   stdClass response object.
   */
  protected function doRequest($url, $headers, $method, $data) {
    return drupal_http_request($url, $headers, $method, $data);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Twitter6::doRequest protected function Actually performs a request.