Avatar of rpm
rpm
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Azure Translation in VB

I am trying, for the first time, to make use of Azure Cognitive Services, translation service.

I cannot find a simple example to use this in VB.net

Can anyone point me to, or send me, such an example?
Visual Basic.NETAzure

Avatar of undefined
Last Comment
rpm

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Shaun Vermaak

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
rpm

ASKER
Thanks for your post, I started by trying your above URL directly in Chrome. I inserted my Key1 in place of <client-secret> and pasted the whole resulting URL into Chrome. This responded with:

{"code":405000,"message":"The request method is not supported for the requested resource."}

Am I doing something wrong, or cannot I simply use the URL in chrome?

I must admit to being a complete newbie on this sort of thing.
Shaun Vermaak

Am I doing something wrong, or cannot I simply use the URL in chrome?
Install Postman or the Postman Chrome extension. Some requests are POST etc. not GET. Browsers only do GET requests
rpm

ASKER
Ok, that's progress!

I posted the URL, as a POST in Postman. This time I got ...

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

Am I putting the wrong key in?
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
rpm

ASKER
Has nobody got a simple example in VB for using the API, I am going around in circles?
Shaun Vermaak

Am I putting the wrong key in?
Yes, get a key from the Portal
rpm

ASKER
Thanks for your help, with this help, I got there in the end!
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.