code: def reset_secret(self):
          
          result = self._client.post("{}/reset_secret".format(OAuthClient.api_endpoint), model=self)
  
          if not 'id' in result:
              raise UnexpectedResponseError('Unexpected response when resetting secret!', json=result)
  
          self._populate(result)
          return self.secret
docs: Resets the client secret for this client.