README (last updated 07/06/17)
We will be adding examples around how to use our API to this GitHub repo.
Further documentation can be found on Apiary and Swagger.
Example #1: This example uses the resource owner flow to get an access token, get a template ID, and submit a workflow with values defined in the script.
Example #2: This example does the same thing as Example #1 but uses implicit flow. The script will open a login page in the web browser, ask the user to copy and paste the URL of the redirect page, parse for an access token, and submit a workflow.
Example #3: This example does the same thing as Example #1 but uses the authorization code flow (the most secure of the three flows). The script will open a login page in the web browser, ask the user to copy and paste the URL of the redirect page, parse for the code, use the code to get an access token, and submit a workflow.
Workflow_via_CSV: These files can be used to initiate a workflow any number of times with field names and values taken from a CSV file. The template file uses resource owner flow and reports on data for each workflow instance, including errors.