- Jun 6, 2020
- 11,517
- 4,383
Hi all!
I'm trying to post, but I'm doing something wrong.
create a service account as indicated in the toturial and save the credential in GOOGLE_APLICATIONS_CREDENCIALS
Instructiones google API REST Translate:
HTTP method and URL:
POST
JSON body of the request:
{
"q": ["Hello world"],
"target": "de"
}
Save the body of the request in a file called request.json and run the following command:
curl -X POST \
-H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \
-H "Content-Type: application/json; charset=utf-8" \
-d @request.json \
My code:
B4X:
I'm trying to post, but I'm doing something wrong.
create a service account as indicated in the toturial and save the credential in GOOGLE_APLICATIONS_CREDENCIALS
برای دیدن تصاویر باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن تصاویر باید ثبت نام کنید
cloud.google.comInstructiones google API REST Translate:
HTTP method and URL:
POST
برای دیدن لینک ها باید ثبت نام کنید
JSON body of the request:
{
"q": ["Hello world"],
"target": "de"
}
Save the body of the request in a file called request.json and run the following command:
curl -X POST \
-H "Authorization: Bearer "$(gcloud auth application-default print-access-token) \
-H "Content-Type: application/json; charset=utf-8" \
-d @request.json \
برای دیدن لینک ها باید ثبت نام کنید
My code:
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید