…but I’m not sure how to adhere to the last step in the instructions ”To send your request, choose one of these options: curl. Save the request body in a file called request.json, and execute the following command:”.
If I just run a workflow with the API call above I get a 401 saying ”Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential”. I’ve tried setting up a precedent step where I’m getting a Bearer Token for my associated Google Service Account and I’ve tried using it as ”?key=[bearer token]” in the above API call but I’m getting the same error.
Anyone familiar with accessing a Google API in this way?
Hi there I was wondering if you managed to connect in the end? I’m trying to connect also and wondering if you could point me in the direction of a example?
You connect and then you make this call in CLOUD SHELL
curl -X GET
-H “Authorization: Bearer $(gcloud auth application-default print-access-token)”
“https://cloudresourcemanager.googleapis.com/v3/projects/PROJECT_ID”
Replace PROJECT_ID by your project_ID
Then you get your access_token that you need to use in the Authorization “Bearer ya29…” field to authenticate in your other calls.