WORKFLOW
Deploy and Use a Cloud-Based API on the Command Line
WolframScript can execute functions deployed using APIFunction with only the UUID as an argument.
Using the UUID of the API...
Deploy an API to the cloud
Start by deploying an API to the cloud. This one gives the current share price of a given company’s stock:
Call the API from WolframScript
Give the API’s UUID and arguments to call it from WolframScript:
Using a Mnemonically Named File...
On Unix-based systems, you can call an API from WolframScript with a more mnemonic identifier by saving the API's UUID to a file with an easy-to-remember name.
Deploy an API to the cloud
Start by deploying an API to the cloud. This one gives the current share price of a given company’s stock:
Save the API’s UUID to a mnemonically named file
Create a mnemonically named file that contains the API’s UUID:
Call the API
Call the API by retrieving the API’s UUID from the file (Unix shells only):