Skip to content

Commit 2d9b8fe

Browse files
author
Cameron Pierce
authored
Updated README
new file names, changed language for CSV first row from "names" to "labels"
1 parent 58f32d6 commit 2d9b8fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Workflow_via_CSV/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Workflow_via_CSV
22

3-
The files in this folder can be used for "batch processing" of a workflow, i.e. submitting the initial stage of a workflow any number of times, with potentially different field values in each instance. Specifically, [Initiate_Template.py](https://github.com/ThinkSmart/API_Examples/blob/master/Workflow_via_CSV/initTemplate.py?ts=2) retrieves an access token via resource owner flow, gets the template ID for the workflow of interest, and uses data in a CSV file to initiate workflows. Calls to the ThinkSmart API are done with functions from [Initiate_Functions.py](https://github.com/ThinkSmart/API_Examples/blob/master/Workflow_via_CSV/initFunctions.py?ts=2), which are imported to the template file. This was done for readability and reusability.
3+
The files in this folder can be used for "batch processing" of a workflow, i.e. submitting the initial stage of a workflow any number of times, with potentially different field values in each instance. Specifically, [initTemplate.py](https://github.com/ThinkSmart/API_Examples/blob/master/Workflow_via_CSV/initTemplate.py?ts=2) retrieves an access token via resource owner flow, gets the template ID for the workflow of interest, and uses data in a CSV file to initiate workflows. Calls to the ThinkSmart API are done with functions from [initFunctions.py](https://github.com/ThinkSmart/API_Examples/blob/master/Workflow_via_CSV/initFunctions.py?ts=2), which are imported to the template file. This was done for readability and reusability.
44

55
Although [Example1.py](https://github.com/ThinkSmart/API_Examples/blob/master/Example1.py?ts=2) also uses resource owner flow to initiate a workflow, the files here offer a bit more functionality. Namely, field values come from a CSV (rather than the script itself), and a particular workflow can be initiated more than once because the script loops through each row of the CSV. Also, the template file creates a new txt file (in the same directory) each time it's run, and writes the result of each submission, including error messages.
66

0 commit comments

Comments
 (0)