@@ -40,36 +40,20 @@ There are two ways to call OneRoster routes: by using a generic call or use impl
4040``` python
4141# GET
4242try :
43- classes = openlrw.oneroster_get (' /api/classes' , jwt)
43+ classes = openlrw.http_auth_get (' /api/classes' , jwt)
4444except ExpiredTokenException:
4545 print (" Error: JWT Expired)
4646
4747# POST
4848try :
49- openlrw.oneroster_post (' /api/classes' , data, jwt)
49+ openlrw.http_auth_post (' /api/classes' , data, jwt)
5050except ExpiredTokenException:
5151 print (" Error: JWT Expired)
5252except BadRequestException as e:
5353 print (" Error: " + str (e.message.content))
5454except InternalServerErrorException as e:
5555 print (" Error: " + str (e.message.content))
5656
57-
58- # PATCH
59- try :
60- openlrw.oneroster_patch(' /api/ROUTE' , data, jwt)
61- except ExpiredTokenException:
62- print (" Error: JWT Expired)
63- except BadRequestException as e:
64- print (" Error: " + str (e.message.content))
65- except InternalServerErrorException as e:
66- print (" Error: " + str (e.message.content))
67-
68- # DELETE
69- try :
70- openlrw.oneroster_delete(' /api/ROUTE' , jwt)
71- except ExpiredTokenException:
72- print (" Error: JWT Expired)
7357
7458```
7559
0 commit comments