spotify/http.py
def category(self, category_id, country=None, locale=None):
        """Get a single category used to tag items in Spotify.

        Parameters
        ----------
        category_id : str
            The Spotify category ID for the category.
        country : COUNTRY_TP
            COUNTRY
        locale : LOCALE_TP
            LOCALE
        """
        route = Route('GET', '/browse/categories/{category_id}', category_id=category_id)
        payload = {}

        if country:
            payload['country'] = country

        if locale:
            payload['locale'] = locale

        return self.request(route, params=payload)
def category(self, category_id, country=None, locale=None):
        route = Route('GET', '/browse/categories/{category_id}', category_id=category_id)
        payload = {}

        if country:
            payload['country'] = country

        if locale:
            payload['locale'] = locale

        return self.request(route, params=payload)
def category ( self , category_id , country = None , locale = None ) : route = Route ( 'GET' , '/browse/categories/{category_id}' , category_id = category_id ) payload = { } if country : payload [ 'country' ] = country if locale : payload [ 'locale' ] = locale return self . request ( route , params = payload )
Get a single category used to tag items in Spotify.

        Parameters
        ----------
        category_id : str
            The Spotify category ID for the category.
        country : COUNTRY_TP
            COUNTRY
        locale : LOCALE_TP
            LOCALE
Get a single category used to tag items in Spotify .