(self)
return not bool(rep)
Check if an access token is valid

        Returns:
            dict: Empty or error dict
Check if an access token is valid
Check if an access token is valid
def validate(self):
        """
        Check if an access token is valid

        Returns:
            dict: Empty or error dict
        """
        endpoint = '/validate'

        payload = dict(accessToken=self.access_token)
        rep = self._ygg_req(endpoint, payload)
        return not bool(rep)
def validate ( self ) : endpoint = '/validate' payload = dict ( accessToken = self . access_token ) rep = self . _ygg_req ( endpoint , payload ) return not bool ( rep )