lib/Tumblr/API/Client.php
private function getRedirect($path, $options, $addApiKey)
    {
        $response = $this->makeRequest('GET', $path, $options, $addApiKey);
        if ($response->status === 301 || $response->status === 302) {
            return $response->headers['Location'][0];
        }

        return null;
    }
private function getRedirect($path, $options, $addApiKey)
    {
        $response = $this->makeRequest('GET', $path, $options, $addApiKey);
        if ($response->status === 301 || $response->status === 302) {
            return $response->headers['Location'][0];
        }

        return null;
    }
Make a GET request to the given endpoint and return the response

@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 string url redirected to (or null)