We help IT Professionals succeed at work.

Azure Translation in VB

rpm
rpm asked
on
167 Views
Last Modified: 2019-03-19
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?
Comment
Watch Question

Senior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
rpm

Author

Commented:
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 VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019

Commented:
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

Author

Commented:
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?
rpm

Author

Commented:
Has nobody got a simple example in VB for using the API, I am going around in circles?
Shaun VermaakSenior Consultant
CERTIFIED EXPERT
Awarded 2017
Distinguished Expert 2019

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

Author

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

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.