Run a Sequence
The sequence invocation API is identical to the block invocation API except you pass options as an array (in the order of the sequence blocks).
Run a sequence using the same URL you visit on the web (username/s/block_name)
In the example below, the username is alanfriedman and sequence name is get-weather.
curl -X POST https://api.codeblox.io/alanfriedman/s/get-weather
-H "x-auth-token: YOUR_TOKEN_HERE"
-H "Content-Type: application/json"
-d '{"input": "New York"}'
Options
Pass in block options as an array, in the order of the sequence blocks
curl -X POST https://api.codeblox.io/alanfriedman/s/get-weather
-H "x-auth-token: YOUR_TOKEN_HERE"
-H "Content-Type: application/json"
-d '{"input": "New York", "options": [null, { "Units": "F" } ]}'