OapiRobotMessageOtotaskQueryRequest.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.robot.message.ototask.query request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2022.07.20
  7. */
  8. class OapiRobotMessageOtotaskQueryRequest
  9. {
  10. /**
  11. * 申请到的企业机器人唯一标识符
  12. **/
  13. private $chatbotId;
  14. /**
  15. * 用于查询发送进度的唯一标识
  16. **/
  17. private $processQueryKey;
  18. private $apiParas = array();
  19. public function setChatbotId($chatbotId)
  20. {
  21. $this->chatbotId = $chatbotId;
  22. $this->apiParas["chatbot_id"] = $chatbotId;
  23. }
  24. public function getChatbotId()
  25. {
  26. return $this->chatbotId;
  27. }
  28. public function setProcessQueryKey($processQueryKey)
  29. {
  30. $this->processQueryKey = $processQueryKey;
  31. $this->apiParas["process_query_key"] = $processQueryKey;
  32. }
  33. public function getProcessQueryKey()
  34. {
  35. return $this->processQueryKey;
  36. }
  37. public function getApiMethodName()
  38. {
  39. return "dingtalk.oapi.robot.message.ototask.query";
  40. }
  41. public function getApiParas()
  42. {
  43. return $this->apiParas;
  44. }
  45. public function check()
  46. {
  47. RequestCheckUtil::checkNotNull($this->chatbotId,"chatbotId");
  48. RequestCheckUtil::checkNotNull($this->processQueryKey,"processQueryKey");
  49. }
  50. public function putOtherTextParam($key, $value) {
  51. $this->apiParas[$key] = $value;
  52. $this->$key = $value;
  53. }
  54. }