TaobaokeWidgetItemsConvertRequest.php
2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php
/**
* TOP API: taobao.taobaoke.widget.items.convert request
*
* @author auto create
* @since 1.0, 2012-12-13 16:33:03
*/
class TaobaokeWidgetItemsConvertRequest
{
/**
* 需返回的字段列表.可选值:num_iid,title,nick,pic_url,price,click_url,commission,commission_rate,commission_num,commission_volume,shop_click_url,seller_credit_score,item_location,volume
;字段之间用","分隔.
**/
private $fields;
/**
* 标识一个应用是否来在无线或者手机应用,如果是true则会使用其他规则加密点击串.如果不穿值,则默认是false.
**/
private $isMobile;
/**
* 淘宝客商品数字id串.最大输入40个.格式如:"value1,value2,value3" 用" , "号分隔商品数字id
**/
private $numIids;
/**
* 自定义输入串.格式:英文和数字组成;长度不能大于12个字符,区分不同的推广渠道,如:bbs,表示bbs为推广渠道;blog,表示blog为推广渠道.
**/
private $outerCode;
/**
* 商品track_iid串(带有追踪效果的商品id),最大输入40个,与num_iids必填其一
**/
private $trackIids;
private $apiParas = array();
public function setFields($fields)
{
$this->fields = $fields;
$this->apiParas["fields"] = $fields;
}
public function getFields()
{
return $this->fields;
}
public function setIsMobile($isMobile)
{
$this->isMobile = $isMobile;
$this->apiParas["is_mobile"] = $isMobile;
}
public function getIsMobile()
{
return $this->isMobile;
}
public function setNumIids($numIids)
{
$this->numIids = $numIids;
$this->apiParas["num_iids"] = $numIids;
}
public function getNumIids()
{
return $this->numIids;
}
public function setOuterCode($outerCode)
{
$this->outerCode = $outerCode;
$this->apiParas["outer_code"] = $outerCode;
}
public function getOuterCode()
{
return $this->outerCode;
}
public function setTrackIids($trackIids)
{
$this->trackIids = $trackIids;
$this->apiParas["track_iids"] = $trackIids;
}
public function getTrackIids()
{
return $this->trackIids;
}
public function getApiMethodName()
{
return "taobao.taobaoke.widget.items.convert";
}
public function getApiParas()
{
return $this->apiParas;
}
public function check()
{
RequestCheckUtil::checkNotNull($this->fields,"fields");
RequestCheckUtil::checkMaxListSize($this->numIids,50,"numIids");
RequestCheckUtil::checkMaxListSize($this->trackIids,50,"trackIids");
}
public function putOtherTextParam($key, $value) {
$this->apiParas[$key] = $value;
$this->$key = $value;
}
}