Example #1
0
 function availability_post()
 {
     parent::ValidateToken();
     $appSettings = self::get_app_settings();
     $user = self::get_user(self::$userId);
     $entityBody = file_get_contents('php://input');
     $availability = self::get_doctors_available($entityBody);
     $processor = new \FacebookProcessor\Processor(APP_ID_FOR_ADS_MANAGER, APP_SECRET_FOR_ADS_MANAGER, $user->fb_token, $appSettings, $availability);
     $processor->save_log('trace', 'Manual process request');
     $processor->Process();
     $this->response(null, self::HTTP_OK);
 }