RingCentral.OAuth.revoke_token

You're seeing just the function revoke_token, go back to RingCentral.OAuth module for more information.
Link to this function

revoke_token(ringcentral, token)

View Source

Specs

revoke_token(RingCentral.t(), String.t()) ::
  {:error, RingCentral.Error.t()} | :ok

Revokes access/refresh token.

token is the active access or refresh token to be revoked, see the official documentation for more information.

Example

ringcentral = %RingCentral{
  client_id: "the-client-id",
  client_secret: "the-client-secret",
  http_client: RingCentral.HTTPClient.DefaultClient,
  server_url: "https://platform.ringcentral.com",
  token_info: nil
}

RingCentral.OAuth.revoke_token(ringcentral, "U0pDMDFQMDFKV1MwMXwJ_W7L1fG4eGXBW9Pp-otywzriCw")
# :ok