SpotifyWebAPI\SpotifyWebAPI::getCategoriesList PHP Метод

getCategoriesList() публичный Метод

Requires a valid access token. https://developer.spotify.com/web-api/get-list-categories/
public getCategoriesList ( array | object $options = [] ) : array | object
$options array | object Optional. Options for the categories. - string locale Optional. Language to show categories in, for example sv_SE. - string country Optional. An ISO 3166-1 alpha-2 country code. Show categories from this country. - int limit Optional. Limit the number of categories. - int offset Optional. Number of categories to skip.
Результат array | object The list of categories. Type is controlled by SpotifyWebAPI::setReturnAssoc().
    public function getCategoriesList($options = [])
    {
        $headers = $this->authHeaders();
        $uri = '/v1/browse/categories';
        $this->lastResponse = $this->request->api('GET', $uri, $options, $headers);
        return $this->lastResponse['body'];
    }