OapiCrmObjectdataContactCreateRequest.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.crm.objectdata.contact.create request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2022.04.12
  7. */
  8. class OapiCrmObjectdataContactCreateRequest
  9. {
  10. /**
  11. * 联系人数据
  12. **/
  13. private $instance;
  14. /**
  15. * 自建应用时可选服务商组织ID
  16. **/
  17. private $providerCorpid;
  18. private $apiParas = array();
  19. public function setInstance($instance)
  20. {
  21. $this->instance = $instance;
  22. $this->apiParas["instance"] = $instance;
  23. }
  24. public function getInstance()
  25. {
  26. return $this->instance;
  27. }
  28. public function setProviderCorpid($providerCorpid)
  29. {
  30. $this->providerCorpid = $providerCorpid;
  31. $this->apiParas["provider_corpid"] = $providerCorpid;
  32. }
  33. public function getProviderCorpid()
  34. {
  35. return $this->providerCorpid;
  36. }
  37. public function getApiMethodName()
  38. {
  39. return "dingtalk.oapi.crm.objectdata.contact.create";
  40. }
  41. public function getApiParas()
  42. {
  43. return $this->apiParas;
  44. }
  45. public function check()
  46. {
  47. }
  48. public function putOtherTextParam($key, $value) {
  49. $this->apiParas[$key] = $value;
  50. $this->$key = $value;
  51. }
  52. }