Groups
Groups
Sign in
Groups
Groups
Google Cloud Translation API
Conversations
Labels
About
Send feedback
Help
What should the url look like when using Google Translate v3?
78 views
Skip to first unread message
dhino...@gmail.com
unread,
Jul 8, 2021, 2:20:54 PM
7/8/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Cloud Translation API
Hi,
A working url for Google Translate v2 looks like this:
https://translation.googleapis.com/language/translate/v2?key=AXXXXXXX-e_XxXxXXXXXXXXX-Xx&q=Mary%20had%20a%20little%20lamb&source=en&target=es
What should the url look like for Google Translate v3?
This doesn't work:
https://translation.googleapis.com/v3/projects/100000000005:translateText&contents=Mary%20had%20a%20little%20lamb&sourceLanguageCode=en&targetLanguageCode=es
All the very best,
Daniel
Junpei Zhou
unread,
Jul 8, 2021, 3:38:33 PM
7/8/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Cloud Translation API
Hi Daniel,
The location is also needed in V3 API. Here is an example: "
https://translation.googleapis.com/v3/projects/${MY_PROJECT_ID?}/locations/us-central1:translateText
"
dhino...@gmail.com
unread,
Jul 19, 2021, 1:27:30 PM
7/19/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Cloud Translation API
Hi Zhou,
Thank you. I thought that
/locations/us-central1
was necessary only for batches.
Best,
Daniel
Reply all
Reply to author
Forward
0 new messages