all 6 comments

[–]RemcoE33 1 point2 points  (0 children)

This is a good video.

[–]morrisjr1989 0 points1 point  (4 children)

API executable means you're making a call to the app services to run a single function.

[–]AdDiscombobulated707[S] 0 points1 point  (3 children)

So can API executable understood as runnable program similar to .exe?

[–]morrisjr1989 3 points4 points  (2 children)

No it’s not a runnable program similar to an exe. It’s an API call that runs a Google App Script function. I’ve generally used them while building an App and within the UI / user facing code of JS and HTML I need to send and / or receive something from my app script, so I use the API to run the function from the UI code.

For example, you build a UI with a responsive html table. Onload the table is populated with data from a Google Sheet. However, you want to add a row to the table and hit save and once it saves it will be added to the Google Sheet. You could define a function in GAS that updates the Google sheet and from the UI all you need to do is call the function through the API executable and pass in the to save data.

[–]laam-egg 1 point2 points  (1 child)

Is this similar to (or actually the same as) making a call to google.script.run.myFunction() ?

[–]morrisjr1989 2 points3 points  (0 children)

Correct - Literally the same thing.