Returns an array of structured details of one timetable in JSON format.
-
Version History:
TASS v52.5 - Method Added
-
Version:
3
-
Permission:
Timetables > Timetable Calendar Setup > View
-
Method:
GET | POST
-
Params:
Required:
tt_id [string]
- Timetable IdOptional:
none
Conditional:
none
-
Success Response:
{ "tt_calendar": [ { "CAT_NUM": "", "CMPY_CODE": 10, "TTDATE": "2019-07-05 00:00:00.0", "RECORD_ID": 136447, "LABEL": "Fri 05/07/2019", "ID": "89-2019-07-05", "TABLE_ID": "ttcalendar", "VALUE": "2019-07-05", "TT_ID": 89, "DAY_CODE": 5 }, { "CAT_NUM": "", "CMPY_CODE": 10, "TTDATE": "2019-07-07 00:00:00.0", "RECORD_ID": 136449, "LABEL": "Sun 07/07/2019", "ID": "89-2019-07-07", "TABLE_ID": "ttcalendar", "VALUE": "2019-07-07", "TT_ID": 89, "DAY_CODE": "" } ], "__tassversion": "01.053.3.000", "token": { "timestamp": "{ts '2021-01-21 15:21:20'}", "tt_id": 89 } }
-
Error Response:
tt_id
not supplied__invalid: { "tt_id": "field is required" }
-
Sample Parameters:
{ "tt_id":"89" }
-
Sample GET: (With URL Encoded
token
)http://api.tasscloud.com.au/tassweb/api/?method=getTimetableCalendar&appcode=API03&company=10&v=3&token=l1D8owEn111IHcXLRwXTB0oU2GX6rj%2BISqa9zXA8We1Gqx9%2Fzb%2BcbVFartivsDN%2FxGgAIIjtABAYfzYPqTCpLf3gb0nW3h%2FTrPFLMhAdNcVvHD0Gz4FkRj5jRAD1aAGQ
-
Sample POST:
<form id="postForm" name="postForm" method="POST" action="http://api.tasscloud.com.au/tassweb/api/"> <input type="hidden" name="method" value="getTimetableCalendar"> <input type="hidden" name="appcode" value="API03"> <input type="hidden" name="company" value="10"> <input type="hidden" name="v" value="3"> <textarea name="token">l1D8owEn111IHcXLRwXTB0oU2GX6rj+ISqa9zXA8We1Gqx9/zb+cbVFartivsDN/xGgAIIjtABAYfzYPqTCpLf3gb0nW3h/TrPFLMhAdNcVvHD0Gz4FkRj5jRAD1aAGQ</textarea> </form>