1
|
|
|
<?php |
2
|
|
|
/** |
3
|
|
|
* TOP API: taobao.tbk.shop.get request |
4
|
|
|
* |
5
|
|
|
* @author auto create |
6
|
|
|
* @since 1.0, 2020.02.24 |
7
|
|
|
*/ |
8
|
|
|
class TbkShopGetRequest |
9
|
|
|
{ |
10
|
|
|
/** |
11
|
|
|
* 累计推广商品上限 |
12
|
|
|
**/ |
13
|
|
|
private $endAuctionCount; |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* 淘客佣金比率上限,1~10000 |
17
|
|
|
**/ |
18
|
|
|
private $endCommissionRate; |
19
|
|
|
|
20
|
|
|
/** |
21
|
|
|
* 信用等级上限,1~20 |
22
|
|
|
**/ |
23
|
|
|
private $endCredit; |
24
|
|
|
|
25
|
|
|
/** |
26
|
|
|
* 店铺商品总数上限 |
27
|
|
|
**/ |
28
|
|
|
private $endTotalAction; |
29
|
|
|
|
30
|
|
|
/** |
31
|
|
|
* 需返回的字段列表 |
32
|
|
|
**/ |
33
|
|
|
private $fields; |
34
|
|
|
|
35
|
|
|
/** |
36
|
|
|
* 是否商城的店铺,设置为true表示该是属于淘宝商城的店铺,设置为false或不设置表示不判断这个属性 |
37
|
|
|
**/ |
38
|
|
|
private $isTmall; |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* 第几页,默认1,1~100 |
42
|
|
|
**/ |
43
|
|
|
private $pageNo; |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* 页大小,默认20,1~100 |
47
|
|
|
**/ |
48
|
|
|
private $pageSize; |
49
|
|
|
|
50
|
|
|
/** |
51
|
|
|
* 链接形式:1:PC,2:无线,默认:1 |
52
|
|
|
**/ |
53
|
|
|
private $platform; |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* 查询词 |
57
|
|
|
**/ |
58
|
|
|
private $q; |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* 排序_des(降序),排序_asc(升序),佣金比率(commission_rate), 商品数量(auction_count),销售总数量(total_auction) |
62
|
|
|
**/ |
63
|
|
|
private $sort; |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* 累计推广商品下限 |
67
|
|
|
**/ |
68
|
|
|
private $startAuctionCount; |
69
|
|
|
|
70
|
|
|
/** |
71
|
|
|
* 淘客佣金比率下限,1~10000 |
72
|
|
|
**/ |
73
|
|
|
private $startCommissionRate; |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* 信用等级下限,1~20 |
77
|
|
|
**/ |
78
|
|
|
private $startCredit; |
79
|
|
|
|
80
|
|
|
/** |
81
|
|
|
* 店铺商品总数下限 |
82
|
|
|
**/ |
83
|
|
|
private $startTotalAction; |
84
|
|
|
|
85
|
|
|
private $apiParas = array(); |
86
|
|
|
|
87
|
|
|
public function setEndAuctionCount($endAuctionCount) |
88
|
|
|
{ |
89
|
|
|
$this->endAuctionCount = $endAuctionCount; |
90
|
|
|
$this->apiParas["end_auction_count"] = $endAuctionCount; |
91
|
|
|
} |
92
|
|
|
|
93
|
|
|
public function getEndAuctionCount() |
94
|
|
|
{ |
95
|
|
|
return $this->endAuctionCount; |
96
|
|
|
} |
97
|
|
|
|
98
|
|
|
public function setEndCommissionRate($endCommissionRate) |
99
|
|
|
{ |
100
|
|
|
$this->endCommissionRate = $endCommissionRate; |
101
|
|
|
$this->apiParas["end_commission_rate"] = $endCommissionRate; |
102
|
|
|
} |
103
|
|
|
|
104
|
|
|
public function getEndCommissionRate() |
105
|
|
|
{ |
106
|
|
|
return $this->endCommissionRate; |
107
|
|
|
} |
108
|
|
|
|
109
|
|
|
public function setEndCredit($endCredit) |
110
|
|
|
{ |
111
|
|
|
$this->endCredit = $endCredit; |
112
|
|
|
$this->apiParas["end_credit"] = $endCredit; |
113
|
|
|
} |
114
|
|
|
|
115
|
|
|
public function getEndCredit() |
116
|
|
|
{ |
117
|
|
|
return $this->endCredit; |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
public function setEndTotalAction($endTotalAction) |
121
|
|
|
{ |
122
|
|
|
$this->endTotalAction = $endTotalAction; |
123
|
|
|
$this->apiParas["end_total_action"] = $endTotalAction; |
124
|
|
|
} |
125
|
|
|
|
126
|
|
|
public function getEndTotalAction() |
127
|
|
|
{ |
128
|
|
|
return $this->endTotalAction; |
129
|
|
|
} |
130
|
|
|
|
131
|
|
|
public function setFields($fields) |
132
|
|
|
{ |
133
|
|
|
$this->fields = $fields; |
134
|
|
|
$this->apiParas["fields"] = $fields; |
135
|
|
|
} |
136
|
|
|
|
137
|
|
|
public function getFields() |
138
|
|
|
{ |
139
|
|
|
return $this->fields; |
140
|
|
|
} |
141
|
|
|
|
142
|
|
|
public function setIsTmall($isTmall) |
143
|
|
|
{ |
144
|
|
|
$this->isTmall = $isTmall; |
145
|
|
|
$this->apiParas["is_tmall"] = $isTmall; |
146
|
|
|
} |
147
|
|
|
|
148
|
|
|
public function getIsTmall() |
149
|
|
|
{ |
150
|
|
|
return $this->isTmall; |
151
|
|
|
} |
152
|
|
|
|
153
|
|
|
public function setPageNo($pageNo) |
154
|
|
|
{ |
155
|
|
|
$this->pageNo = $pageNo; |
156
|
|
|
$this->apiParas["page_no"] = $pageNo; |
157
|
|
|
} |
158
|
|
|
|
159
|
|
|
public function getPageNo() |
160
|
|
|
{ |
161
|
|
|
return $this->pageNo; |
162
|
|
|
} |
163
|
|
|
|
164
|
|
|
public function setPageSize($pageSize) |
165
|
|
|
{ |
166
|
|
|
$this->pageSize = $pageSize; |
167
|
|
|
$this->apiParas["page_size"] = $pageSize; |
168
|
|
|
} |
169
|
|
|
|
170
|
|
|
public function getPageSize() |
171
|
|
|
{ |
172
|
|
|
return $this->pageSize; |
173
|
|
|
} |
174
|
|
|
|
175
|
|
|
public function setPlatform($platform) |
176
|
|
|
{ |
177
|
|
|
$this->platform = $platform; |
178
|
|
|
$this->apiParas["platform"] = $platform; |
179
|
|
|
} |
180
|
|
|
|
181
|
|
|
public function getPlatform() |
182
|
|
|
{ |
183
|
|
|
return $this->platform; |
184
|
|
|
} |
185
|
|
|
|
186
|
|
|
public function setQ($q) |
187
|
|
|
{ |
188
|
|
|
$this->q = $q; |
189
|
|
|
$this->apiParas["q"] = $q; |
190
|
|
|
} |
191
|
|
|
|
192
|
|
|
public function getQ() |
193
|
|
|
{ |
194
|
|
|
return $this->q; |
195
|
|
|
} |
196
|
|
|
|
197
|
|
|
public function setSort($sort) |
198
|
|
|
{ |
199
|
|
|
$this->sort = $sort; |
200
|
|
|
$this->apiParas["sort"] = $sort; |
201
|
|
|
} |
202
|
|
|
|
203
|
|
|
public function getSort() |
204
|
|
|
{ |
205
|
|
|
return $this->sort; |
206
|
|
|
} |
207
|
|
|
|
208
|
|
|
public function setStartAuctionCount($startAuctionCount) |
209
|
|
|
{ |
210
|
|
|
$this->startAuctionCount = $startAuctionCount; |
211
|
|
|
$this->apiParas["start_auction_count"] = $startAuctionCount; |
212
|
|
|
} |
213
|
|
|
|
214
|
|
|
public function getStartAuctionCount() |
215
|
|
|
{ |
216
|
|
|
return $this->startAuctionCount; |
217
|
|
|
} |
218
|
|
|
|
219
|
|
|
public function setStartCommissionRate($startCommissionRate) |
220
|
|
|
{ |
221
|
|
|
$this->startCommissionRate = $startCommissionRate; |
222
|
|
|
$this->apiParas["start_commission_rate"] = $startCommissionRate; |
223
|
|
|
} |
224
|
|
|
|
225
|
|
|
public function getStartCommissionRate() |
226
|
|
|
{ |
227
|
|
|
return $this->startCommissionRate; |
228
|
|
|
} |
229
|
|
|
|
230
|
|
|
public function setStartCredit($startCredit) |
231
|
|
|
{ |
232
|
|
|
$this->startCredit = $startCredit; |
233
|
|
|
$this->apiParas["start_credit"] = $startCredit; |
234
|
|
|
} |
235
|
|
|
|
236
|
|
|
public function getStartCredit() |
237
|
|
|
{ |
238
|
|
|
return $this->startCredit; |
239
|
|
|
} |
240
|
|
|
|
241
|
|
|
public function setStartTotalAction($startTotalAction) |
242
|
|
|
{ |
243
|
|
|
$this->startTotalAction = $startTotalAction; |
244
|
|
|
$this->apiParas["start_total_action"] = $startTotalAction; |
245
|
|
|
} |
246
|
|
|
|
247
|
|
|
public function getStartTotalAction() |
248
|
|
|
{ |
249
|
|
|
return $this->startTotalAction; |
250
|
|
|
} |
251
|
|
|
|
252
|
|
|
public function getApiMethodName() |
253
|
|
|
{ |
254
|
|
|
return "taobao.tbk.shop.get"; |
255
|
|
|
} |
256
|
|
|
|
257
|
|
|
public function getApiParas() |
258
|
|
|
{ |
259
|
|
|
return $this->apiParas; |
260
|
|
|
} |
261
|
|
|
|
262
|
|
|
public function check() |
263
|
|
|
{ |
264
|
|
|
|
265
|
|
|
RequestCheckUtil::checkNotNull($this->fields,"fields"); |
266
|
|
|
RequestCheckUtil::checkNotNull($this->q,"q"); |
267
|
|
|
} |
268
|
|
|
|
269
|
|
|
public function putOtherTextParam($key, $value) { |
270
|
|
|
$this->apiParas[$key] = $value; |
271
|
|
|
$this->$key = $value; |
272
|
|
|
} |
273
|
|
|
} |
274
|
|
|
|