lib/Tumblr/API/Client.php
private function makeRequest($method, $path, $options, $addApiKey)
    {
        if ($addApiKey) {
            $options = array_merge(
                array('api_key' => $this->apiKey),
                $options ?: array()
            );
        }

        return $this->requestHandler->request($method, $path, $options);
    }
private function makeRequest($method, $path, $options, $addApiKey)
    {
        if ($addApiKey) {
            $options = array_merge(
                array('api_key' => $this->apiKey),
                $options ?: array()
            );
        }

        return $this->requestHandler->request($method, $path, $options);
    }
Make a request to the given endpoint and return the response

@param string $method    the method to call: GET, POST
@param string $path      the path to call on
@param array  $options   the options to call with
@param bool   $addApiKey whether or not to add the api key

@return \stdClass the response object (not parsed)