Aucune description

OpenuidChangeRequest.php 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /**
  3. * TOP API: taobao.openuid.change request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2018.01.11
  7. */
  8. class OpenuidChangeRequest
  9. {
  10. /**
  11. * openUid
  12. **/
  13. private $openUid;
  14. /**
  15. * 转换到的appkey
  16. **/
  17. private $targetAppKey;
  18. private $apiParas = array();
  19. public function setOpenUid($openUid)
  20. {
  21. $this->openUid = $openUid;
  22. $this->apiParas["open_uid"] = $openUid;
  23. }
  24. public function getOpenUid()
  25. {
  26. return $this->openUid;
  27. }
  28. public function setTargetAppKey($targetAppKey)
  29. {
  30. $this->targetAppKey = $targetAppKey;
  31. $this->apiParas["target_app_key"] = $targetAppKey;
  32. }
  33. public function getTargetAppKey()
  34. {
  35. return $this->targetAppKey;
  36. }
  37. public function getApiMethodName()
  38. {
  39. return "taobao.openuid.change";
  40. }
  41. public function getApiParas()
  42. {
  43. return $this->apiParas;
  44. }
  45. public function check()
  46. {
  47. RequestCheckUtil::checkNotNull($this->openUid,"openUid");
  48. RequestCheckUtil::checkNotNull($this->targetAppKey,"targetAppKey");
  49. }
  50. public function putOtherTextParam($key, $value) {
  51. $this->apiParas[$key] = $value;
  52. $this->$key = $value;
  53. }
  54. }