spotify/http.py
def albums(self, spotify_ids, market='US'):
        """Get a spotify album by its ID.

        Parameters
        ----------
        spotify_ids : List[str]
            The spotify_ids to search by.
        market : Optional[str]
            An ISO 3166-1 alpha-2 country code.
        """
        route = Route('GET', '/albums/')
        payload = {'ids': spotify_ids}

        if market:
            payload['market'] = market

        return self.request(route, params=payload)
def albums(self, spotify_ids, market='US'):
        """Get a spotify album by its ID.

        Parameters
        ----------
        spotify_ids : List[str]
            The spotify_ids to search by.
        market : Optional[str]
            An ISO 3166-1 alpha-2 country code.
        """
        route = Route('GET', '/albums/')
        payload = {'ids': spotify_ids}

        if market:
            payload['market'] = market

        return self.request(route, params=payload)
def albums ( self , spotify_ids , market = 'US' ) : route = Route ( 'GET' , '/albums/' ) payload = { 'ids' : spotify_ids } if market : payload [ 'market' ] = market return self . request ( route , params = payload )
Get a spotify album by its ID.

        Parameters
        ----------
        spotify_ids : List[str]
            The spotify_ids to search by.
        market : Optional[str]
            An ISO 3166-1 alpha-2 country code.
Get a spotify album by its ID .