You are here

protected function InstagramRequest::doRequest in Instagram Block 7

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.

1 call to InstagramRequest::doRequest()
InstagramRequest::request in ./instagram_block.lib.php
Performs a request.

File

./instagram_block.lib.php, line 123
Instagram classes to integrate with the Instagram API.

Class

InstagramRequest
@file Instagram classes to integrate with the Instagram API.

Code

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