Link to home
Start Free TrialLog in
Avatar of rpm
rpmFlag 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?
ASKER CERTIFIED SOLUTION
Avatar of Shaun Vermaak
Shaun Vermaak
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 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.
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
Avatar of 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?
Avatar of rpm

ASKER

Has nobody got a simple example in VB for using the API, I am going around in circles?
Am I putting the wrong key in?
Yes, get a key from the Portal
Avatar of rpm

ASKER

Thanks for your help, with this help, I got there in the end!