def pause(self, pause=True):
        """Pauses the spotify player

        :param pause: boolean value to choose the pause/play state
        """
        url: str = get_url("/remote/pause.json")
        params = {
            "oauth": self._oauth_token,
            "csrf": self._csrf_token,
            "pause": "true" if pause else "false",
        }
        self._request(url=url, params=params)
def pause ( self , pause = True ) : url : str = get_url ( "/remote/pause.json" ) params = { "oauth" : self . _oauth_token , "csrf" : self . _csrf_token , "pause" : "true" if pause else "false" , } self . _request ( url = url , params = params )
Pauses the spotify player

        :param pause: boolean value to choose the pause/play state