View Source ExAzureSpeech.Auth.Client (ex_azure_speech v0.2.2)
Client to authenticate with the Azure Cognitive Services API
Summary
Functions
Issues an authentication token to access the Azure Cognitive Services API.
The authentication is a Bearer token that must be passed in the Authorization header of the requests.
Functions
@spec auth(ExAzureSpeech.Auth.Config.t()) :: {:ok, String.t()} | {:error, ExAzureSpeech.Auth.Errors.Failure.t() | ExAzureSpeech.Auth.Errors.Unauthorized.t()}
Issues an authentication token to access the Azure Cognitive Services API.
The authentication is a Bearer token that must be passed in the Authorization header of the requests.