chatbotId = $chatbotId; $this->apiParas["chatbot_id"] = $chatbotId; } public function getChatbotId() { return $this->chatbotId; } public function setIconMediaId($iconMediaId) { $this->iconMediaId = $iconMediaId; $this->apiParas["icon_media_id"] = $iconMediaId; } public function getIconMediaId() { return $this->iconMediaId; } public function setName($name) { $this->name = $name; $this->apiParas["name"] = $name; } public function getName() { return $this->name; } public function setOpenConversationId($openConversationId) { $this->openConversationId = $openConversationId; $this->apiParas["open_conversation_id"] = $openConversationId; } public function getOpenConversationId() { return $this->openConversationId; } public function getApiMethodName() { return "dingtalk.corp.chatbot.addchatbotinstance"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->chatbotId,"chatbotId"); RequestCheckUtil::checkNotNull($this->openConversationId,"openConversationId"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }