OapiCustomerserviceSessionCreateRequest.php 821 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.customerservice.session.create request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.03.29
  7. */
  8. class OapiCustomerserviceSessionCreateRequest
  9. {
  10. /**
  11. * 新建会话参数
  12. **/
  13. private $createSession;
  14. private $apiParas = array();
  15. public function setCreateSession($createSession)
  16. {
  17. $this->createSession = $createSession;
  18. $this->apiParas["create_session"] = $createSession;
  19. }
  20. public function getCreateSession()
  21. {
  22. return $this->createSession;
  23. }
  24. public function getApiMethodName()
  25. {
  26. return "dingtalk.oapi.customerservice.session.create";
  27. }
  28. public function getApiParas()
  29. {
  30. return $this->apiParas;
  31. }
  32. public function check()
  33. {
  34. }
  35. public function putOtherTextParam($key, $value) {
  36. $this->apiParas[$key] = $value;
  37. $this->$key = $value;
  38. }
  39. }