Work in Progress: How to Ping an API
Last updated
Last updated
Create a Computed Field (learn how to in the "" doc).
Write your code. It should look something like this:
Go to the "All" Tab on the Left Sidebar
Scroll to the bottom where you can find the Data Outputs area, and click on "Create New"
On the Options Tab of the Right Sidebar select "Custom" as an output
Check the "Manual Trigger Only" box
Click on "Generate Sample Code" below the code editor, on the Options Tab of the Right Sidebar
Write your code inside the created function. It should look something like this:
Select the page or component where you want to ping the API
Go to the Triggers Tab on the Right Sidebar
Choose to trigger on page load, on page complete, on click, on success, etc.
Select the Data Output you want to trigger
Done!