Nenhuma Descrição

TbkUatmEventItemGetRequest.php 2.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?php
  2. /**
  3. * TOP API: taobao.tbk.uatm.event.item.get request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2016.04.29
  7. */
  8. class TbkUatmEventItemGetRequest
  9. {
  10. /**
  11. * 推广位id,需要在淘宝联盟后台创建;且属于appkey对应的备案媒体id(siteid),如何获取adzoneid,请参考:http://club.alimama.com/read-htm-tid-6333967.html?spm=0.0.0.0.msZnx5
  12. **/
  13. private $adzoneId;
  14. /**
  15. * 招商活动id
  16. **/
  17. private $eventId;
  18. /**
  19. * 需要输出则字段列表,逗号分隔
  20. **/
  21. private $fields;
  22. /**
  23. * 第几页,默认:1,从1开始计数
  24. **/
  25. private $pageNo;
  26. /**
  27. * 页大小,默认20,1~100
  28. **/
  29. private $pageSize;
  30. /**
  31. * 链接形式:1:PC,2:无线,默认:1
  32. **/
  33. private $platform;
  34. /**
  35. * 自定义输入串,英文和数字组成,长度不能大于12个字符,区分不同的推广渠道
  36. **/
  37. private $unid;
  38. private $apiParas = array();
  39. public function setAdzoneId($adzoneId)
  40. {
  41. $this->adzoneId = $adzoneId;
  42. $this->apiParas["adzone_id"] = $adzoneId;
  43. }
  44. public function getAdzoneId()
  45. {
  46. return $this->adzoneId;
  47. }
  48. public function setEventId($eventId)
  49. {
  50. $this->eventId = $eventId;
  51. $this->apiParas["event_id"] = $eventId;
  52. }
  53. public function getEventId()
  54. {
  55. return $this->eventId;
  56. }
  57. public function setFields($fields)
  58. {
  59. $this->fields = $fields;
  60. $this->apiParas["fields"] = $fields;
  61. }
  62. public function getFields()
  63. {
  64. return $this->fields;
  65. }
  66. public function setPageNo($pageNo)
  67. {
  68. $this->pageNo = $pageNo;
  69. $this->apiParas["page_no"] = $pageNo;
  70. }
  71. public function getPageNo()
  72. {
  73. return $this->pageNo;
  74. }
  75. public function setPageSize($pageSize)
  76. {
  77. $this->pageSize = $pageSize;
  78. $this->apiParas["page_size"] = $pageSize;
  79. }
  80. public function getPageSize()
  81. {
  82. return $this->pageSize;
  83. }
  84. public function setPlatform($platform)
  85. {
  86. $this->platform = $platform;
  87. $this->apiParas["platform"] = $platform;
  88. }
  89. public function getPlatform()
  90. {
  91. return $this->platform;
  92. }
  93. public function setUnid($unid)
  94. {
  95. $this->unid = $unid;
  96. $this->apiParas["unid"] = $unid;
  97. }
  98. public function getUnid()
  99. {
  100. return $this->unid;
  101. }
  102. public function getApiMethodName()
  103. {
  104. return "taobao.tbk.uatm.event.item.get";
  105. }
  106. public function getApiParas()
  107. {
  108. return $this->apiParas;
  109. }
  110. public function check()
  111. {
  112. RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId");
  113. RequestCheckUtil::checkNotNull($this->eventId,"eventId");
  114. RequestCheckUtil::checkNotNull($this->fields,"fields");
  115. }
  116. public function putOtherTextParam($key, $value) {
  117. $this->apiParas[$key] = $value;
  118. $this->$key = $value;
  119. }
  120. }