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

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

Requires a valid access token. https://developer.spotify.com/web-api/get-recommendations/#available-genre-seeds
public getGenreSeeds ( ) : array | object
Результат array | object All possible seed genres. Type is controlled by SpotifyWebAPI::setReturnAssoc().
    public function getGenreSeeds()
    {
        $headers = $this->authHeaders();
        $uri = '/v1/recommendations/available-genre-seeds';
        $this->lastResponse = $this->request->api('GET', $uri, [], $headers);
        return $this->lastResponse['body'];
    }