Web: OneRoster - Academic Sessions
Call (Development environment)
Run("https://simsid-partner-oneroster.azurewebsites.net/ims/oneroster/v1p1/academicSessions/"
, bt1
, arq.OCP_APIM_Key
, "AcademicSessions.json"
, folder);
Where
- bt1 is the bearer token,
- arq.OCP_APIM_Key is the API Manager Key (Not used)
- "AcademicSessions.json" is the file name to write the output to and
- folder is the location to create the file
You can find all the base class definitions here along with details of the scopes.
NB: The live URL will have a different 'stem'.
Will return:
{
"academicSessions": [
{
"sourcedId": "aa81c2b0-2cbd-464c-a2b1-a702512d114a",
"status": "active",
"dateLastModified": "2018-01-01T00:00:00.000Z",
"metadata": {},
"title": "Spring Term",
"startDate": "2018-01-01",
"endDate": "2018-03-31",
"type": "term",
"parent": {
"href": "https://simsid-partner-oneroster.azurewebsites.net/ims/oneroster/v1p1/academicSessions/",
"sourcedId": "",
"type": "academicSession"
},
"children": []
},
{
"sourcedId": "92fdcc88-bf9a-425a-956c-cb3030c18211",
"status": "active",
"dateLastModified": "2018-04-09T00:00:00.000Z",
"metadata": {},
"title": "Test Grading Period",
"startDate": "2018-01-01",
"endDate": "2019-01-01",
"type": "gradingPeriod",
"parent": {
"href": "https://simsid-partner-oneroster.azurewebsites.net/ims/oneroster/v1p1/academicSessions/",
"sourcedId": "",
"type": "academicSession"
},
"children": []
}
]
}