public function getCommentsForLesson($lessonId)
 {
     $myWrapper = new Platform_Webservices_Wrapper();
     $jsonObj = $myWrapper->request('comments/lessonid/' . $lessonId);
     return Platform_Data::getDataObject($jsonObj);
 }
Example #2
0
 public function getAllBadges()
 {
     $myWrapper = new Platform_Webservices_Wrapper();
     $jsonObj = $myWrapper->request('badges/');
     return Platform_Data::getDataObject($jsonObj);
 }
Example #3
0
 public function saveUser($data)
 {
     $jsonObj = $this->myWrapper->request('users/add', 'POST', $data, "true");
     return Platform_Data::getDataObject($jsonObj);
 }