- make sure your credential key is set.
gcloud auth print-identity-token
- try API call with
itr
andoffset
queries.
curl -X GET https://compvideo-2kpkrvrjda-uc.a.run.app\?itr\=1\&offset\=0 \
-H "Authorization: Bearer $(gcloud auth print-identity-token)"
- sequential API call with
seq
andxargs
shell script.
seq 0 10 100|xargs -n 1 -P 50 -I {} \
curl -X GET https://compvideo-2kpkrvrjda-uc.a.run.app\?itr\=10\&offset\=\{\} \
-H "Authorization: Bearer $(gcloud auth print-identity-token)"