Web: OneRoster - Teachers
Call (Development environment)
Run("https://simsid-partner-oneroster.azurewebsites.net/ims/oneroster/v1p1/teachers/"
, bt1
, arq.OCP_APIM_Key
, "Teachers,json"
, folder);
Where
- bt1 is the bearer token,
- arq.OCP_APIM_Key is the API Manager Key (Not used)
- "Teachers.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:
{
"users": [
{
"sourcedId": "024201bc-9ad2-46e1-9788-8dc80ceea06e",
"status": "active",
"dateLastModified": "2018-08-03T09:14:41.600Z",
"metadata": {},
"username": "024201BC-9AD2-46E1-9788-8DC80CEEA06E",
"userIds": [],
"enabledUser": "true",
"givenName": "Ian",
"familyName": "Moon",
"middleName": null,
"role": "teacher",
"identifier": "024201BC-9AD2-46E1-9788-8DC80CEEA06E",
"email": null,
"sms": null,
"phone": null,
"agents": [],
"orgs": [
{
"href": "https://simsid-partner-oneroster.azurewebsites.net/ims/oneroster/v1p1/schools/1F75608A-9006-4FC8-96E7-3E537C904B84",
"sourcedId": "1f75608a-9006-4fc8-96e7-3e537c904b84",
"type": "org"
}
],
"grades": [],
"password": ""
},
{
"sourcedId": "08855098-6d0c-4d81-96ed-ddec23bd9d34",
"status": "active",
"dateLastModified": "2018-08-03T09:14:41.600Z",
"metadata": {},
"username": "08855098-6D0C-4D81-96ED-DDEC23BD9D34",
"userIds": [],
"enabledUser": "true",
"givenName": "Mohammad",
"familyName": "Sanders",
"middleName": null,
"role": "teacher",
"identifier": "08855098-6D0C-4D81-96ED-DDEC23BD9D34",
"email": null,
"sms": null,
"phone": null,
"agents": [],
"orgs": [
{
"href": "https://simsid-partner-oneroster.azurewebsites.net/ims/oneroster/v1p1/schools/1F75608A-9006-4FC8-96E7-3E537C904B84",
"sourcedId": "1f75608a-9006-4fc8-96e7-3e537c904b84",
"type": "org"
}
],
"grades": [],
"password": ""
},
{
"sourcedId": "0914e35f-7f41-48d3-9187-8f1cc9862781",
"status": "active",
"dateLastModified": "2018-08-03T09:14:41.600Z",
"metadata": {},
"username": "0914E35F-7F41-48D3-9187-8F1CC9862781",
"userIds": [],
"enabledUser": "true",
"givenName": "William",
"familyName": "Williamson",
"middleName": null,
"role": "teacher",
"identifier": "0914E35F-7F41-48D3-9187-8F1CC9862781",
"email": null,
"sms": null,
"phone": null,
"agents": [],
"orgs": [
{
"href": "https://simsid-partner-oneroster.azurewebsites.net/ims/oneroster/v1p1/schools/1F75608A-9006-4FC8-96E7-3E537C904B84",
"sourcedId": "1f75608a-9006-4fc8-96e7-3e537c904b84",
"type": "org"
}
],
"grades": [],
"password": ""
}, ...