Using the API key directly in the call. No more token required.
You can now use the Azure API key directly in the API call. It is not necessary to exchange the key to a token before using it in the API call. While the previous method of using a token still works, we recommend updating your code for improved performance and reliability, now avoiding the additional round trip.
1. In your http request to api.microsofttranslator.com or dev.microsofttranslator.com, set the http header "Ocp-Apim-Subscription-Key" to your subscription key.
2. Do not make a call to the token service (https://api.cognitive.microsoft.com/sts/v1.0/issueToken)
3. Do not use the AppID parameter or the "Authorization" http header.
Last update: October 13, 2017