TbkScPublisherInfoGetRequest.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <?php
  2. /**
  3. * TOP API: taobao.tbk.sc.publisher.info.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2025.11.03
  7. */
  8. class TbkScPublisherInfoGetRequest
  9. {
  10. /**
  11. * 淘宝客外部用户标记,如自身系统账户ID;微信ID等
  12. **/
  13. private $externalId;
  14. /**
  15. * 1-微信、2-微博、3-抖音、4-快手、5-QQ,0-其他;默认为0
  16. **/
  17. private $externalType;
  18. /**
  19. * 类型,必选 1:渠道信息;2:会员信息
  20. **/
  21. private $infoType;
  22. /**
  23. * 第几页,下标从0开始
  24. **/
  25. private $pageNo;
  26. /**
  27. * 每页大小
  28. **/
  29. private $pageSize;
  30. /**
  31. * 备案的场景:common(通用备案),etao(一淘备案),minietao(一淘小程序备案),offlineShop(线下门店备案),offlinePerson(线下个人备案)。如不填默认common。查询会员信息只需填写common即可
  32. **/
  33. private $relationApp;
  34. /**
  35. * 渠道独占 - 渠道关系ID
  36. **/
  37. private $relationId;
  38. /**
  39. * 会员独占 - 会员运营ID
  40. **/
  41. private $specialId;
  42. private $apiParas = array();
  43. public function setExternalId($externalId)
  44. {
  45. $this->externalId = $externalId;
  46. $this->apiParas["external_id"] = $externalId;
  47. }
  48. public function getExternalId()
  49. {
  50. return $this->externalId;
  51. }
  52. public function setExternalType($externalType)
  53. {
  54. $this->externalType = $externalType;
  55. $this->apiParas["external_type"] = $externalType;
  56. }
  57. public function getExternalType()
  58. {
  59. return $this->externalType;
  60. }
  61. public function setInfoType($infoType)
  62. {
  63. $this->infoType = $infoType;
  64. $this->apiParas["info_type"] = $infoType;
  65. }
  66. public function getInfoType()
  67. {
  68. return $this->infoType;
  69. }
  70. public function setPageNo($pageNo)
  71. {
  72. $this->pageNo = $pageNo;
  73. $this->apiParas["page_no"] = $pageNo;
  74. }
  75. public function getPageNo()
  76. {
  77. return $this->pageNo;
  78. }
  79. public function setPageSize($pageSize)
  80. {
  81. $this->pageSize = $pageSize;
  82. $this->apiParas["page_size"] = $pageSize;
  83. }
  84. public function getPageSize()
  85. {
  86. return $this->pageSize;
  87. }
  88. public function setRelationApp($relationApp)
  89. {
  90. $this->relationApp = $relationApp;
  91. $this->apiParas["relation_app"] = $relationApp;
  92. }
  93. public function getRelationApp()
  94. {
  95. return $this->relationApp;
  96. }
  97. public function setRelationId($relationId)
  98. {
  99. $this->relationId = $relationId;
  100. $this->apiParas["relation_id"] = $relationId;
  101. }
  102. public function getRelationId()
  103. {
  104. return $this->relationId;
  105. }
  106. public function setSpecialId($specialId)
  107. {
  108. $this->specialId = $specialId;
  109. $this->apiParas["special_id"] = $specialId;
  110. }
  111. public function getSpecialId()
  112. {
  113. return $this->specialId;
  114. }
  115. public function getApiMethodName()
  116. {
  117. return "taobao.tbk.sc.publisher.info.get";
  118. }
  119. public function getApiParas()
  120. {
  121. return $this->apiParas;
  122. }
  123. public function check()
  124. {
  125. RequestCheckUtil::checkNotNull($this->infoType,"infoType");
  126. RequestCheckUtil::checkNotNull($this->relationApp,"relationApp");
  127. }
  128. public function putOtherTextParam($key, $value) {
  129. $this->apiParas[$key] = $value;
  130. $this->$key = $value;
  131. }
  132. }