execute google cloud api through apigee

HI I am new to apigee i have a jar which when executed using command java -jar usr/sid/edwi-auth-token.jar -u https://edwitestapi-iq734nlrra-de.a.run.app/getEdwiMarkerEvent gives a token that token passed as authorization and then hit google cloud api https://edwitestapi-iq734nlrra-de.a.run.app/getEdwiMarkerEvent how can i do this in apigee or if i can execute curl cmd directly by keeping jar that gives token somewher curl cmd -->curl -H "Authorization: Bearer $(java -jar /usr/sid/edwi-auth-token.jar -u https://edwitestapi-iq734nlrra-de.a.run.app/getEdwiMarkerEvent)" https://edwitestapi-iq734nlrra-de.a.run.app/getEdwiMarkerEvent

0 1 153
1 REPLY 1

Not applicable

I would suggest you to host the jar in a webserver as an api service. Then you can call from Apigee as a service callout or api call to that for token generation and access the main api service.