cwmiller / broadworks-connector

Simple library for connecting to BroadWorks OCI-P API
MIT License
8 stars 5 forks source link

Modify PhoneNumber #52

Closed TwinMist closed 4 years ago

TwinMist commented 4 years ago

Trying to modify a users phone number with $request = (new UserModifyRequest17sp4()) ->setUserId($userId) ->setphoneNumber($phoneNumber); getting the following error Field userId is required on CWM\BroadWorksConnector\Ocip\Models\AuthenticationRequest.

CWM\BroadWorksConnector\Ocip\Models\UserModifyRequest17sp4::__set_state(array( 'userId' => 'spare3.xxx@xxxx.com', 'lastName' => NULL, 'firstName' => NULL, 'callingLineIdLastName' => NULL, 'callingLineIdFirstName' => NULL, 'nameDialingName' => NULL, 'hiraganaLastName' => NULL, 'hiraganaFirstName' => NULL, 'phoneNumber' => '+xxxxxxx', 'extension' => NULL, 'callingLineIdPhoneNumber' => NULL, 'oldPassword' => NULL, 'newPassword' => NULL, 'department' => NULL, 'language' => NULL, 'timeZone' => NULL, 'sipAliasList' => NULL, 'endpoint' => NULL, 'title' => NULL, 'pagerPhoneNumber' => NULL, 'mobilePhoneNumber' => NULL, 'emailAddress' => NULL, 'yahooId' => NULL, 'addressLocation' => NULL, 'address' => NULL, 'networkClassOfService' => NULL, 'officeZoneName' => NULL, 'primaryZoneName' => NULL, 'impId' => NULL, 'impPassword' => NULL, 'alternateUserIdList' => NULL, ))

where am i going wrong?

many thanks

TwinMist commented 4 years ago

user error