getAccessToken

@POST(value = "/{productType}/token/")
abstract suspend fun getAccessToken(@Path(value = "productType") productType: String, @Header(value = "Ocp-Apim-Subscription-Key") productSubscriptionKey: String): Response<AccessToken>

Obtains an access token for the specified product type.

Return

A Response containing the obtained AccessToken.

Parameters

productType

The type of product for which to obtain the access token.

productSubscriptionKey

The subscription key for the product.