SpotifyWebAPI\Request::account PHP Method

account() public method

Make a request to the "account" endpoint.
public account ( string $method, string $uri, array $parameters = [], array $headers = [] ) : array
$method string The HTTP method to use.
$uri string The URI to request.
$parameters array Optional. Query parameters.
$headers array Optional. HTTP headers.
return array Response data. - array|object body The response body. Type is controlled by Request::setReturnAssoc(). - string headers Response headers. - int status HTTP status code. - string url The requested URL.
    public function account($method, $uri, $parameters = [], $headers = [])
    {
        return $this->send($method, self::ACCOUNT_URL . $uri, $parameters, $headers);
    }