Using - Translator - Auth problem

MiJe 0 Reputation points
2024-04-07T20:17:00.15+00:00

Hi,
I want to user the translator in an Stand Alone App.
In the header I put the value for 'Ocp-Apim-Subscription-Key'
In the App I found under 'keys and Endpoints' two keys and a region.
I use one of the Keys as 'Ocp-Apim-Subscription-Key'.

If I make a Post I've got the following message

{"error":{"code":401001,"message":"The request is not authorized because credentials are missing or invalid."}}

Is this not the 'Ocp-Apim-Subscription-Key'? What have I done wrong?

Kind Regards

Michael

Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
408 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.