Skip to content

Instantly share code, notes, and snippets.

@joaojeronimo
Last active January 3, 2016 05:39
Show Gist options
  • Save joaojeronimo/8417445 to your computer and use it in GitHub Desktop.
Save joaojeronimo/8417445 to your computer and use it in GitHub Desktop.
For the CrowdProcess REST API Guide
$ curl https://api.crowdprocess.com/jobs/<job_id>/errors \
-u "<your@email.com>:<yourpassword>"
$ curl https://api.crowdprocess.com/jobs -X POST \
-F "program=@program.js" \
-u "<your@email.com>:<yourpassword>"
$ curl https://api.crowdprocess.com/jobs/<job_id>/results \
-u "<your@email.com>:<yourpassword>"
{
"id": "369571a7-7caa-44be-b7c6-310614bd5118"
}
{ "data": [1, 2, 3] }
1
"a"
[1, 2, 3]
true
function Run(d) {
return d;
}
$ curl https://api.crowdprocess.com/jobs/<job_id>/tasks -X POST \
-T "tasks" \
-u "<your@email.com>:<yourpassword>"
1
true
"a"
[1, 2, 3]
{ "data": [1, 2, 3] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment