Get list of programs
1 |
GET /api/1/program |
Parameters
Name | Parameter Type |
Allow Multiple |
Required/ Optional |
Data Type | Description |
---|---|---|---|---|---|
Authorization: | Header | False | Required | String (Bearer {access token}) | Pass the authentication token that was granted when you authorized access. |
type | Query | False | Required | String | Program type to return. Valid values are TRACK, EVENT and LIST_MAINT. |
TRACK returns Automated Programs.
EVENT returns upcoming Webinar events.
LIST_MAINT returns List Maintenance Programs.
Request
HTTP
Following is an example HTTP request:
1 2 3 4 |
GET /api/1/program?type=TRACK HTTP/1.1 Host: restapi.actonsoftware.com Authorization: Bearer 70bf22cceb1016351f97b8b59ae35 Cache-Control: no-cache |
curl
Following is an example curl request:
1 |
curl -X GET -H "Authorization: Bearer 70bf22cceb1016351f97b8b59ae35" -H "Cache-Control: no-cache" https://restapi.actonsoftware.com/api/1/program?type=TRACK |
Response
Success results in an HTTP 200 response in JSON like the following:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
{ "folders": [ { "id": -1, "name": "", "programs": [ { "id": "tr-0002", "name": "ToddProgram", "isFavorite": false, "description": "", "srcIds": [ "l-0025" ], "srcNames": [ "Todd" ], "messageIds": [ "s-0029-1611", "s-002a-1611" ], "createdTS": 1478201625775, "created": "Nov 3 2016 12:33 PM PDT", "modifiedTs": 0, "modified": "Nov 4 2016 10:39 AM PDT", "nextrunTS": 0, "nextrun": null, "progstate": "stopped", "valid": true, "running": false, "active": 0, "tagNames": [], "scheduled": false } ] } ], "anyRunning": false } |