/** * Execute the api call to get user app list. */ public function execute() { $allows_status_update = $this->getBooleanValue($this->getApiParam('allows_status_update', null)); $allows_create_listing = $this->getBooleanValue($this->getApiParam('allows_create_listing', null)); $allows_photo_upload = $this->getBooleanValue($this->getApiParam('allows_photo_upload', null)); $auth_information = $this->getBooleanValue($this->getApiParam('auth_information', null)); $auth_profile = $this->getBooleanValue($this->getApiParam('auth_profile', null)); $auth_leftnav = $this->getBooleanValue($this->getApiParam('auth_leftnav', null)); $auth_newsfeeds = $this->getBooleanValue($this->getApiParam('auth_newsfeeds', null)); $profile_col = $this->getBooleanValue($this->getApiParam('auth_newsfeeds', null)); $profile_order = $this->getBooleanValue($this->getApiParam('auth_newsfeeds', null)); $ret = Api_Bo_App::setUsersApp($this->app_id, $this->getUserId(), $allows_status_update, $allows_create_listing, $allows_photo_upload, $auth_information, $auth_profile, $auth_leftnav, $auth_newsfeeds, $profile_col, $profile_order); $response['result'] = $ret > 0 ? '1' : '0'; return $response; }