/** * sample_AddMemberMessageAAQToPartner::dispatchCall() * * Dispatch the call * * @param array $params array of parameters for the eBay API call * * @return boolean success */ public function dispatchCall($params) { $req = new AddMemberMessageAAQToPartnerRequestType(); $req->setItemID($params['ItemID']); $MemberMessage = new MemberMessageType(); $MemberMessage->setBody($params['Body']); $MemberMessage->setRecipientID($params['RecipientID']); $MemberMessage->setSubject($params['Subject']); $req->setMemberMessage($MemberMessage); $res = $this->proxy->AddMemberMessageAAQToPartner($req); if ($this->testValid($res)) { $this->dumpObject($res); return true; } else { return false; } }
public function addMemberMessage($params) { $this->session->setRequestToken($params['AuthToken']); $req = new AddMemberMessageRTQRequestType(); $req->setItemID($params['ItemID']); $MemberMessage = new MemberMessageType(); $MemberMessage->setBody($params['Body']); $MemberMessage->setParentMessageID($params['ParentMessageID']); $MemberMessage->setRecipientID($params['RecipientID']); $req->setMemberMessage($MemberMessage); $res = $this->proxy->AddMemberMessageRTQ($req); if ($this->testValid($res)) { return true; } else { $this->dumpObject($res); return false; } }
public function addMemberMessage($params) { $this->session->setRequestToken($params['AuthToken']); $req = new AddMemberMessageAAQToPartnerRequestType(); $req->setItemID($params['ItemID']); $MemberMessage = new MemberMessageType(); $MemberMessage->setBody($params['Body']); $questionType = $params['QuestionType']; if (empty($questionType) || $questionType == 'None') { $questionType = 'General'; } $MemberMessage->setQuestionType($questionType); $MemberMessage->setRecipientID($params['RecipientID']); $MemberMessage->setSubject($params['Subject']); $req->setMemberMessage($MemberMessage); $res = $this->proxy->AddMemberMessageAAQToPartner($req); if ($this->testValid($res)) { return true; } else { $this->dumpObject($res); return false; } }