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