(self)
return True
Generate an access token with a client/access token pair. Used
        access token is invalidated.

        Returns:
            dict: Response or error dict
Generate an access token with a client/access token pair. Used
        access token is invalidated.
Generate an access token with a client / access token pair . Used access token is invalidated .
def refresh(self):
        """
        Generate an access token with a client/access token pair. Used
        access token is invalidated.

        Returns:
            dict: Response or error dict
        """
        endpoint = '/refresh'

        payload = {
            'accessToken': self.access_token,
            'clientToken': self.client_token,
        }
        rep = self._ygg_req(endpoint, payload)
        if not rep or 'error' in rep:
            return False

        self.access_token = rep['accessToken']
        self.client_token = rep['clientToken']
        self.selected_profile = rep['selectedProfile']
        return True
def refresh ( self ) : endpoint = '/refresh' payload = { 'accessToken' : self . access_token , 'clientToken' : self . client_token , } rep = self . _ygg_req ( endpoint , payload ) if not rep or 'error' in rep : return False self . access_token = rep [ 'accessToken' ] self . client_token = rep [ 'clientToken' ] self . selected_profile = rep [ 'selectedProfile' ] return True