I am trying to download a file from the cloud storage bucket using the curl request as explained here - https://cloud.google.com/storage/docs/downloading-objects#download-object-json
In the above docs, In step1, I see the access token is getting generated from the Oauth 2.0 playground. However, I want to programmatically generate the token and send the CURL request. \
Is there any way to get the access token through any script? Probably from another CURL request using the service account?