1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace AlibabaCloud\Dysmsapi\V20170525; |
4
|
|
|
|
5
|
|
|
use AlibabaCloud\Client\Resolver\ApiResolver; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* @method AddSmsSign addSmsSign(array $options = []) |
9
|
|
|
* @method AddSmsTemplate addSmsTemplate(array $options = []) |
10
|
|
|
* @method DeleteSmsSign deleteSmsSign(array $options = []) |
11
|
|
|
* @method DeleteSmsTemplate deleteSmsTemplate(array $options = []) |
12
|
|
|
* @method ModifySmsSign modifySmsSign(array $options = []) |
13
|
|
|
* @method ModifySmsTemplate modifySmsTemplate(array $options = []) |
14
|
|
|
* @method QuerySendDetails querySendDetails(array $options = []) |
15
|
|
|
* @method QuerySmsProdStatus querySmsProdStatus(array $options = []) |
16
|
|
|
* @method QuerySmsSign querySmsSign(array $options = []) |
17
|
|
|
* @method QuerySmsTemplate querySmsTemplate(array $options = []) |
18
|
|
|
* @method SendBatchSms sendBatchSms(array $options = []) |
19
|
|
|
* @method SendSms sendSms(array $options = []) |
20
|
|
|
*/ |
21
|
|
|
class DysmsapiApiResolver extends ApiResolver |
22
|
|
|
{ |
23
|
|
|
} |
24
|
|
|
|
25
|
|
|
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc |
26
|
|
|
{ |
27
|
|
|
/** @var string */ |
28
|
|
|
public $product = 'Dysmsapi'; |
29
|
|
|
|
30
|
|
|
/** @var string */ |
31
|
|
|
public $version = '2017-05-25'; |
32
|
|
|
|
33
|
|
|
/** @var string */ |
34
|
|
|
public $method = 'POST'; |
35
|
|
|
|
36
|
|
|
/** @var string */ |
37
|
|
|
public $serviceCode = 'dysms'; |
38
|
|
|
} |
39
|
|
|
|
40
|
|
|
/** |
41
|
|
|
* @method string getResourceOwnerId() |
42
|
|
|
* @method $this withResourceOwnerId($value) |
43
|
|
|
* @method string getRemark() |
44
|
|
|
* @method $this withRemark($value) |
45
|
|
|
* @method string getSignName() |
46
|
|
|
* @method $this withSignName($value) |
47
|
|
|
* @method array getSignFileList() |
48
|
|
|
* @method string getResourceOwnerAccount() |
49
|
|
|
* @method $this withResourceOwnerAccount($value) |
50
|
|
|
* @method string getOwnerId() |
51
|
|
|
* @method $this withOwnerId($value) |
52
|
|
|
* @method string getSignSource() |
53
|
|
|
* @method $this withSignSource($value) |
54
|
|
|
*/ |
55
|
|
|
class AddSmsSign extends Rpc |
56
|
|
|
{ |
57
|
|
|
|
58
|
|
|
/** |
59
|
|
|
* @param array $signFileList |
60
|
|
|
* |
61
|
|
|
* @return $this |
62
|
|
|
*/ |
63
|
|
|
public function withSignFileList(array $signFileList) |
64
|
|
|
{ |
65
|
|
|
$this->data['SignFileList'] = $signFileList; |
66
|
|
|
foreach ($signFileList as $depth1 => $depth1Value) { |
67
|
|
|
$this->options['query']['SignFileList.' . ($depth1 + 1) . '.FileContents'] = $depth1Value['FileContents']; |
68
|
|
|
$this->options['query']['SignFileList.' . ($depth1 + 1) . '.FileSuffix'] = $depth1Value['FileSuffix']; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
return $this; |
72
|
|
|
} |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* @method string getResourceOwnerId() |
77
|
|
|
* @method $this withResourceOwnerId($value) |
78
|
|
|
* @method string getRemark() |
79
|
|
|
* @method $this withRemark($value) |
80
|
|
|
* @method string getTemplateType() |
81
|
|
|
* @method $this withTemplateType($value) |
82
|
|
|
* @method string getTemplateName() |
83
|
|
|
* @method $this withTemplateName($value) |
84
|
|
|
* @method string getResourceOwnerAccount() |
85
|
|
|
* @method $this withResourceOwnerAccount($value) |
86
|
|
|
* @method string getOwnerId() |
87
|
|
|
* @method $this withOwnerId($value) |
88
|
|
|
* @method string getTemplateContent() |
89
|
|
|
* @method $this withTemplateContent($value) |
90
|
|
|
*/ |
91
|
|
|
class AddSmsTemplate extends Rpc |
92
|
|
|
{ |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @method string getResourceOwnerId() |
97
|
|
|
* @method $this withResourceOwnerId($value) |
98
|
|
|
* @method string getResourceOwnerAccount() |
99
|
|
|
* @method $this withResourceOwnerAccount($value) |
100
|
|
|
* @method string getOwnerId() |
101
|
|
|
* @method $this withOwnerId($value) |
102
|
|
|
* @method string getSignName() |
103
|
|
|
* @method $this withSignName($value) |
104
|
|
|
*/ |
105
|
|
|
class DeleteSmsSign extends Rpc |
106
|
|
|
{ |
107
|
|
|
} |
108
|
|
|
|
109
|
|
|
/** |
110
|
|
|
* @method string getResourceOwnerId() |
111
|
|
|
* @method $this withResourceOwnerId($value) |
112
|
|
|
* @method string getResourceOwnerAccount() |
113
|
|
|
* @method $this withResourceOwnerAccount($value) |
114
|
|
|
* @method string getOwnerId() |
115
|
|
|
* @method $this withOwnerId($value) |
116
|
|
|
* @method string getTemplateCode() |
117
|
|
|
* @method $this withTemplateCode($value) |
118
|
|
|
*/ |
119
|
|
|
class DeleteSmsTemplate extends Rpc |
120
|
|
|
{ |
121
|
|
|
} |
122
|
|
|
|
123
|
|
|
/** |
124
|
|
|
* @method string getResourceOwnerId() |
125
|
|
|
* @method $this withResourceOwnerId($value) |
126
|
|
|
* @method string getRemark() |
127
|
|
|
* @method $this withRemark($value) |
128
|
|
|
* @method string getSignName() |
129
|
|
|
* @method $this withSignName($value) |
130
|
|
|
* @method array getSignFileList() |
131
|
|
|
* @method string getResourceOwnerAccount() |
132
|
|
|
* @method $this withResourceOwnerAccount($value) |
133
|
|
|
* @method string getOwnerId() |
134
|
|
|
* @method $this withOwnerId($value) |
135
|
|
|
* @method string getSignSource() |
136
|
|
|
* @method $this withSignSource($value) |
137
|
|
|
*/ |
138
|
|
|
class ModifySmsSign extends Rpc |
139
|
|
|
{ |
140
|
|
|
|
141
|
|
|
/** |
142
|
|
|
* @param array $signFileList |
143
|
|
|
* |
144
|
|
|
* @return $this |
145
|
|
|
*/ |
146
|
|
|
public function withSignFileList(array $signFileList) |
147
|
|
|
{ |
148
|
|
|
$this->data['SignFileList'] = $signFileList; |
149
|
|
|
foreach ($signFileList as $depth1 => $depth1Value) { |
150
|
|
|
$this->options['query']['SignFileList.' . ($depth1 + 1) . '.FileContents'] = $depth1Value['FileContents']; |
151
|
|
|
$this->options['query']['SignFileList.' . ($depth1 + 1) . '.FileSuffix'] = $depth1Value['FileSuffix']; |
152
|
|
|
} |
153
|
|
|
|
154
|
|
|
return $this; |
155
|
|
|
} |
156
|
|
|
} |
157
|
|
|
|
158
|
|
|
/** |
159
|
|
|
* @method string getResourceOwnerId() |
160
|
|
|
* @method $this withResourceOwnerId($value) |
161
|
|
|
* @method string getRemark() |
162
|
|
|
* @method $this withRemark($value) |
163
|
|
|
* @method string getTemplateType() |
164
|
|
|
* @method $this withTemplateType($value) |
165
|
|
|
* @method string getTemplateName() |
166
|
|
|
* @method $this withTemplateName($value) |
167
|
|
|
* @method string getResourceOwnerAccount() |
168
|
|
|
* @method $this withResourceOwnerAccount($value) |
169
|
|
|
* @method string getOwnerId() |
170
|
|
|
* @method $this withOwnerId($value) |
171
|
|
|
* @method string getTemplateContent() |
172
|
|
|
* @method $this withTemplateContent($value) |
173
|
|
|
* @method string getTemplateCode() |
174
|
|
|
* @method $this withTemplateCode($value) |
175
|
|
|
*/ |
176
|
|
|
class ModifySmsTemplate extends Rpc |
177
|
|
|
{ |
178
|
|
|
} |
179
|
|
|
|
180
|
|
|
/** |
181
|
|
|
* @method string getResourceOwnerId() |
182
|
|
|
* @method $this withResourceOwnerId($value) |
183
|
|
|
* @method string getPhoneNumber() |
184
|
|
|
* @method $this withPhoneNumber($value) |
185
|
|
|
* @method string getSendDate() |
186
|
|
|
* @method $this withSendDate($value) |
187
|
|
|
* @method string getPageSize() |
188
|
|
|
* @method $this withPageSize($value) |
189
|
|
|
* @method string getResourceOwnerAccount() |
190
|
|
|
* @method $this withResourceOwnerAccount($value) |
191
|
|
|
* @method string getCurrentPage() |
192
|
|
|
* @method $this withCurrentPage($value) |
193
|
|
|
* @method string getOwnerId() |
194
|
|
|
* @method $this withOwnerId($value) |
195
|
|
|
* @method string getBizId() |
196
|
|
|
* @method $this withBizId($value) |
197
|
|
|
*/ |
198
|
|
|
class QuerySendDetails extends Rpc |
199
|
|
|
{ |
200
|
|
|
} |
201
|
|
|
|
202
|
|
|
/** |
203
|
|
|
* @method string getResourceOwnerId() |
204
|
|
|
* @method $this withResourceOwnerId($value) |
205
|
|
|
* @method string getResourceOwnerAccount() |
206
|
|
|
* @method $this withResourceOwnerAccount($value) |
207
|
|
|
* @method string getOwnerId() |
208
|
|
|
* @method $this withOwnerId($value) |
209
|
|
|
* @method string getAliyUid() |
210
|
|
|
* @method $this withAliyUid($value) |
211
|
|
|
*/ |
212
|
|
|
class QuerySmsProdStatus extends Rpc |
213
|
|
|
{ |
214
|
|
|
} |
215
|
|
|
|
216
|
|
|
/** |
217
|
|
|
* @method string getResourceOwnerId() |
218
|
|
|
* @method $this withResourceOwnerId($value) |
219
|
|
|
* @method string getResourceOwnerAccount() |
220
|
|
|
* @method $this withResourceOwnerAccount($value) |
221
|
|
|
* @method string getOwnerId() |
222
|
|
|
* @method $this withOwnerId($value) |
223
|
|
|
* @method string getSignName() |
224
|
|
|
* @method $this withSignName($value) |
225
|
|
|
*/ |
226
|
|
|
class QuerySmsSign extends Rpc |
227
|
|
|
{ |
228
|
|
|
} |
229
|
|
|
|
230
|
|
|
/** |
231
|
|
|
* @method string getResourceOwnerId() |
232
|
|
|
* @method $this withResourceOwnerId($value) |
233
|
|
|
* @method string getResourceOwnerAccount() |
234
|
|
|
* @method $this withResourceOwnerAccount($value) |
235
|
|
|
* @method string getOwnerId() |
236
|
|
|
* @method $this withOwnerId($value) |
237
|
|
|
* @method string getTemplateCode() |
238
|
|
|
* @method $this withTemplateCode($value) |
239
|
|
|
*/ |
240
|
|
|
class QuerySmsTemplate extends Rpc |
241
|
|
|
{ |
242
|
|
|
} |
243
|
|
|
|
244
|
|
|
/** |
245
|
|
|
* @method string getResourceOwnerId() |
246
|
|
|
* @method $this withResourceOwnerId($value) |
247
|
|
|
* @method string getTemplateParamJson() |
248
|
|
|
* @method $this withTemplateParamJson($value) |
249
|
|
|
* @method string getResourceOwnerAccount() |
250
|
|
|
* @method $this withResourceOwnerAccount($value) |
251
|
|
|
* @method string getOwnerId() |
252
|
|
|
* @method $this withOwnerId($value) |
253
|
|
|
* @method string getSmsUpExtendCodeJson() |
254
|
|
|
* @method $this withSmsUpExtendCodeJson($value) |
255
|
|
|
* @method string getSignNameJson() |
256
|
|
|
* @method $this withSignNameJson($value) |
257
|
|
|
* @method string getTemplateCode() |
258
|
|
|
* @method $this withTemplateCode($value) |
259
|
|
|
* @method string getPhoneNumberJson() |
260
|
|
|
* @method $this withPhoneNumberJson($value) |
261
|
|
|
*/ |
262
|
|
|
class SendBatchSms extends Rpc |
263
|
|
|
{ |
264
|
|
|
} |
265
|
|
|
|
266
|
|
|
/** |
267
|
|
|
* @method string getResourceOwnerId() |
268
|
|
|
* @method $this withResourceOwnerId($value) |
269
|
|
|
* @method string getSmsUpExtendCode() |
270
|
|
|
* @method $this withSmsUpExtendCode($value) |
271
|
|
|
* @method string getSignName() |
272
|
|
|
* @method $this withSignName($value) |
273
|
|
|
* @method string getResourceOwnerAccount() |
274
|
|
|
* @method $this withResourceOwnerAccount($value) |
275
|
|
|
* @method string getPhoneNumbers() |
276
|
|
|
* @method $this withPhoneNumbers($value) |
277
|
|
|
* @method string getOwnerId() |
278
|
|
|
* @method $this withOwnerId($value) |
279
|
|
|
* @method string getOutId() |
280
|
|
|
* @method $this withOutId($value) |
281
|
|
|
* @method string getTemplateCode() |
282
|
|
|
* @method $this withTemplateCode($value) |
283
|
|
|
* @method string getTemplateParam() |
284
|
|
|
* @method $this withTemplateParam($value) |
285
|
|
|
*/ |
286
|
|
|
class SendSms extends Rpc |
287
|
|
|
{ |
288
|
|
|
} |
289
|
|
|
|