/** * sample_GetNotificationPreferences::dispatchCall() * * Dispatch the call * * @param array $params array of parameters for the eBay API call * * @return boolean success */ public function dispatchCall($params) { $req = new GetNotificationPreferencesRequestType(); $req->setPreferenceLevel($params['PreferenceLevel']); $res = $this->proxy->GetNotificationPreferences($req); if ($this->testValid($res)) { $this->dumpObject($res); return true; } else { return false; } }
/** * @return GetNotificationPreferencesResponseType * @param GetNotificationPreferencesRequestType $request */ function GetNotificationPreferences($request) { $request->setVersion(EBAY_WSDL_VERSION); return $this->call('GetNotificationPreferences', $request); }
public function GetNotificationPreferences() { $req = new GetNotificationPreferencesRequestType(); // 1st request for user prefs $req->setPreferenceLevel('User'); $res = $this->sp->GetNotificationPreferences($req); // 2nd request for user data $this->initLogger(); $req->setPreferenceLevel('UserData'); $res2 = $this->sp->GetNotificationPreferences($req); // 3rd request for app data $this->initLogger(); $req->setPreferenceLevel('Application'); $res3 = $this->sp->GetNotificationPreferences($req); // handle result return print_r($res, 1) . print_r($res2, 1) . print_r($res3, 1); }