I created a Google App Script AAA and deployed it as "API Executable" that runs as me, and then created a second Google App Script BBB that runs as the user accessing the web app.
The goal is to get the user email using script BBB and then pass that as a parameter to AAA to generate a Google Drive folder with the email as the folder name.
I cannot get the syntax correct to execute the function in AAA from BBB.
I am only using Google App Script. Examples I found are with using Java, or Python, etc, but I would like to do with within the Google App Script.
UrlFetchApp(url)to the published url of the AAA Web App. Link to fetch documentation In file AAA you must have either adoGet()ordoPost()function. Those are reserved function names that are simple triggers, or event handlers that watch for the GET or POST request being made to the url of the published web app, and then run if a request is detected. If you already have that then post your code.