File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,26 +27,26 @@ class Klass extends OneRoster
2727
2828 public static function enrollments (String $ id )
2929 {
30- return parent ::get ("classes/ $ id/enrollments " );
30+ return parent ::httpGet ("classes/ $ id/enrollments " );
3131 }
3232
3333 public static function events (String $ id )
3434 {
35- return parent ::get ("classes/ $ id/events/stats " );
35+ return parent ::httpGet ("classes/ $ id/events/stats " );
3636 }
3737
3838 public static function eventsForUser (String $ id , String $ userId )
3939 {
40- return parent ::get ("classes/ $ id/events/user/ $ userId " );
40+ return parent ::httpGet ("classes/ $ id/events/user/ $ userId " );
4141 }
4242
4343 public static function resultsForUser (String $ id , String $ userId )
4444 {
45- return parent ::get ("classes/ $ id/results/user/ $ userId " );
45+ return parent ::httpGet ("classes/ $ id/results/user/ $ userId " );
4646 }
4747
4848 public static function lineItems (String $ id ) {
49- return parent ::get ("classes/ $ id/lineitems " );
49+ return parent ::httpGet ("classes/ $ id/lineitems " );
5050 }
5151
5252}
Original file line number Diff line number Diff line change @@ -36,22 +36,22 @@ class User extends OneRoster
3636
3737 public static function enrollments (String $ id )
3838 {
39- return parent ::get (static ::$ collection . "/ $ id/enrollments " );
39+ return parent ::httpGet (static ::$ collection . "/ $ id/enrollments " );
4040 }
4141
4242 public static function events (String $ id )
4343 {
44- return parent ::get (static ::$ collection . "/ $ id/events " );
44+ return parent ::httpGet (static ::$ collection . "/ $ id/events " );
4545 }
4646
4747 public static function eventsFrom (String $ id , String $ from )
4848 {
49- return parent ::get (static ::$ collection . "/ $ id/events?from= $ from " );
49+ return parent ::httpGet (static ::$ collection . "/ $ id/events?from= $ from " );
5050 }
5151
5252 public static function eventsFromTo (String $ id , String $ from , String $ to )
5353 {
54- return parent ::get (static ::$ collection . "/ $ id/events?from= $ from&to= $ to " );
54+ return parent ::httpGet (static ::$ collection . "/ $ id/events?from= $ from&to= $ to " );
5555 }
5656
5757}
You can’t perform that action at this time.
0 commit comments