Skip to content

Commit 5cda706

Browse files
committed
Support API CreateSmsSign.
1 parent 75d8a8c commit 5cda706

File tree

160 files changed

+6155
-380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+6155
-380
lines changed

ChangeLog.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
2024-06-25 Version: 3.0.0
2+
- Support API CreateSmsSign.
3+
- Support API CreateSmsTemplate.
4+
- Support API GetOSSInfoForUploadFile.
5+
- Support API GetSmsSign.
6+
- Support API GetSmsTemplate.
7+
- Support API UpdateSmsSign.
8+
- Support API UpdateSmsTemplate.
9+
- Update API CreateSmartShortUrl: add param OutId.
10+
- Update API CreateSmartShortUrl: delete param Expiration.
11+
- Update API CreateSmartShortUrl: delete param SourceName.
12+
- Update API CreateSmartShortUrl: update param PhoneNumbers.
13+
- Update API CreateSmartShortUrl: update param SourceUrl.
14+
- Update API QueryPageSmartShortUrlLog: delete param ClickState.
15+
- Update API QueryPageSmartShortUrlLog: delete param EndId.
16+
- Update API QueryPageSmartShortUrlLog: delete param ShortName.
17+
- Update API QueryPageSmartShortUrlLog: delete param StartId.
18+
- Update API QueryPageSmartShortUrlLog: update param CreateDateEnd.
19+
- Update API QueryPageSmartShortUrlLog: update param CreateDateStart.
20+
- Update API QueryPageSmartShortUrlLog: update param PageNo.
21+
- Update API QueryPageSmartShortUrlLog: update param PageSize.
22+
23+
124
2023-07-04 Version: 2.0.24
225
- Add CreateSmartShortUrl api.
326

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
],
1212
"require": {
1313
"php": ">5.5",
14-
"alibabacloud/tea-utils": "^0.2.19",
15-
"alibabacloud/darabonba-openapi": "^0.2.8",
14+
"alibabacloud/tea-utils": "^0.2.20",
15+
"alibabacloud/darabonba-openapi": "^0.2.12",
1616
"alibabacloud/openapi-util": "^0.1.10|^0.2.1",
1717
"alibabacloud/endpoint-util": "^0.1.0"
1818
},

src/Dysmsapi.php

Lines changed: 1087 additions & 185 deletions
Large diffs are not rendered by default.

src/Models/AddShortUrlRequest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
class AddShortUrlRequest extends Model
1010
{
1111
/**
12+
* @description The validity period of the short URL. Unit: days. The maximum validity period is 90 days.
13+
*
14+
* This parameter is required.
1215
* @example 7
1316
*
1417
* @var string
@@ -31,11 +34,19 @@ class AddShortUrlRequest extends Model
3134
public $resourceOwnerId;
3235

3336
/**
37+
* @description The service name of the short URL. The name cannot exceed 13 characters in length.
38+
*
39+
* This parameter is required.
40+
* @example The Alibaba Cloud Short Link service.
41+
*
3442
* @var string
3543
*/
3644
public $shortUrlName;
3745

3846
/**
47+
* @description The source URL. The URL cannot exceed 1,000 characters in length.
48+
*
49+
* This parameter is required.
3950
* @example https://www.****.com/product/sms
4051
*
4152
* @var string

src/Models/AddShortUrlResponse.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ class AddShortUrlResponse extends Model
3030

3131
public function validate()
3232
{
33-
Model::validateRequired('headers', $this->headers, true);
34-
Model::validateRequired('statusCode', $this->statusCode, true);
35-
Model::validateRequired('body', $this->body, true);
3633
}
3734

3835
public function toMap()

src/Models/AddShortUrlResponseBody.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,36 @@
1010
class AddShortUrlResponseBody extends Model
1111
{
1212
/**
13+
* @description The response code.
14+
*
15+
* The value OK indicates that the request was successful.
16+
* Other values indicate that the request failed. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
17+
*
1318
* @example OK
1419
*
1520
* @var string
1621
*/
1722
public $code;
1823

1924
/**
25+
* @description The details of the short URL.
26+
*
2027
* @var data
2128
*/
2229
public $data;
2330

2431
/**
32+
* @description The returned message.
33+
*
2534
* @example OK
2635
*
2736
* @var string
2837
*/
2938
public $message;
3039

3140
/**
41+
* @description The request ID.
42+
*
3243
* @example 819BE656-D2E0-4858-8B21-B2E477085AAF
3344
*
3445
* @var string

src/Models/AddShortUrlResponseBody/data.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,27 @@
99
class data extends Model
1010
{
1111
/**
12+
* @description The time when the short URL expires.
13+
*
14+
* > The value of **ExpireDate** is on the hour.
1215
* @example 2021-09-19 00:00:00
1316
*
1417
* @var string
1518
*/
1619
public $expireDate;
1720

1821
/**
22+
* @description The short URL.
23+
*
1924
* @example http://****.cn/6y8uy7
2025
*
2126
* @var string
2227
*/
2328
public $shortUrl;
2429

2530
/**
31+
* @description The source URL.
32+
*
2633
* @example https://www.****.com/product/sms
2734
*
2835
* @var string

src/Models/AddSmsSignRequest.php

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ class AddSmsSignRequest extends Model
1515
public $ownerId;
1616

1717
/**
18+
* @description The description of the signature application. The description cannot exceed 200 characters in length. The description is one of the reference information for signature review. We recommend that you describe the use scenarios of your services in detail, and provide information that can verify the services, such as a website URL, a domain name with an ICP filing, an app download URL, an official account name, or a mini program name. For sign-in scenarios, you must also provide an account and password for tests. A detailed description can improve the review efficiency of signatures and templates.
19+
*
20+
* This parameter is required.
21+
* @example This is the abbreviation of our company.
22+
*
1823
* @var string
1924
*/
2025
public $remark;
@@ -30,23 +35,52 @@ class AddSmsSignRequest extends Model
3035
public $resourceOwnerId;
3136

3237
/**
38+
* @description The signature files.
39+
*
40+
* This parameter is required.
3341
* @var signFileList[]
3442
*/
3543
public $signFileList;
3644

3745
/**
46+
* @description The name of the signature.
47+
*
48+
* >
49+
*
50+
* The signature name is not case-sensitive. For example, [Alibaba Cloud Communication] and [alibaba cloud communication] are considered as the same name.
51+
*
52+
* If your verification code signature and general-purpose signature have the same name, the system uses the general-purpose signature to send messages by default.
53+
*
54+
* This parameter is required.
55+
* @example Aliyun
56+
*
3857
* @var string
3958
*/
4059
public $signName;
4160

4261
/**
62+
* @description The source of the signature. Valid values:
63+
*
64+
* **0**: the full name or abbreviation of an enterprise or institution
65+
* **1**: the full name or abbreviation of a website that has obtained an ICP filing from the Ministry of Industry and Information Technology (MIIT) of China
66+
* **2**: the full name or abbreviation of an app
67+
* **3**: the full name or abbreviation of an official account or mini-program
68+
* **4**: the full name or abbreviation of an e-commerce store
69+
* **5**: the full name or abbreviation of a trademark
70+
*
71+
* This parameter is required.
4372
* @example 1
4473
*
4574
* @var int
4675
*/
4776
public $signSource;
4877

4978
/**
79+
* @description The type of the signature. Valid values:
80+
*
81+
* **0**: verification code
82+
* **1**: general-purpose
83+
*
5084
* @example 1
5185
*
5286
* @var int

src/Models/AddSmsSignRequest/signFileList.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,19 @@
99
class signFileList extends Model
1010
{
1111
/**
12+
* @description The Base64-encoded string of the qualification document. An image cannot exceed 2 MB in size. In some scenarios, you must upload supporting documents to apply for signatures. For more information, see [SMS signature specifications](https://help.aliyun.com/document_detail/108076.html).
13+
*
14+
* This parameter is required.
1215
* @example R0lGODlhHAAmAKIHAKqqqsvLy0hISObm5vf394uL****
1316
*
1417
* @var string
1518
*/
1619
public $fileContents;
1720

1821
/**
22+
* @description The format of the qualification document. You can upload multiple images. Images in JPG, PNG, GIF, or JPEG format are supported.
23+
*
24+
* This parameter is required.
1925
* @example jpg
2026
*
2127
* @var string

src/Models/AddSmsSignResponse.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ class AddSmsSignResponse extends Model
3030

3131
public function validate()
3232
{
33-
Model::validateRequired('headers', $this->headers, true);
34-
Model::validateRequired('statusCode', $this->statusCode, true);
35-
Model::validateRequired('body', $this->body, true);
3633
}
3734

3835
public function toMap()

src/Models/AddSmsSignResponseBody.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,40 @@
99
class AddSmsSignResponseBody extends Model
1010
{
1111
/**
12+
* @description The response code.
13+
*
14+
* The value OK indicates that the request was successful.
15+
* Other values indicate that the request failed. For more information, see [Error codes](https://help.aliyun.com/document_detail/101346.html).
16+
*
1217
* @example OK
1318
*
1419
* @var string
1520
*/
1621
public $code;
1722

1823
/**
24+
* @description The returned message.
25+
*
1926
* @example OK
2027
*
2128
* @var string
2229
*/
2330
public $message;
2431

2532
/**
33+
* @description The request ID.
34+
*
2635
* @example F655A8D5-B967-440B-8683-DAD6FF8DE990
2736
*
2837
* @var string
2938
*/
3039
public $requestId;
3140

3241
/**
42+
* @description The name of the signature.
43+
*
44+
* @example Aliyun
45+
*
3346
* @var string
3447
*/
3548
public $signName;

src/Models/AddSmsTemplateRequest.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ class AddSmsTemplateRequest extends Model
1414
public $ownerId;
1515

1616
/**
17+
* @description The description of the message template. It is one of the reference information for template review. The description cannot exceed 100 characters in length.
18+
*
19+
* This parameter is required.
20+
* @example Apply for a template to send verification codes.
21+
*
1722
* @var string
1823
*/
1924
public $remark;
@@ -29,16 +34,34 @@ class AddSmsTemplateRequest extends Model
2934
public $resourceOwnerId;
3035

3136
/**
37+
* @description The content of the template. The content can be up to 500 characters in length. For more information, see [Message template specifications](https://help.aliyun.com/document_detail/108253.html).
38+
*
39+
* This parameter is required.
40+
* @example You are applying for mobile registration. The verification code is: ${code}, valid for 5 minutes!
41+
*
3242
* @var string
3343
*/
3444
public $templateContent;
3545

3646
/**
47+
* @description The name of the template. The name can be up to 30 characters in length.
48+
*
49+
* This parameter is required.
50+
* @example Aliyun Test
51+
*
3752
* @var string
3853
*/
3954
public $templateName;
4055

4156
/**
57+
* @description The type of the message. Valid values:
58+
*
59+
* **0**: verification code
60+
* **1**: notification
61+
* **2**: promotional message
62+
* **3**: message sent to countries or regions outside the Chinese mainland
63+
*
64+
* This parameter is required.
4265
* @example 1
4366
*
4467
* @var int

src/Models/AddSmsTemplateResponse.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ class AddSmsTemplateResponse extends Model
3030

3131
public function validate()
3232
{
33-
Model::validateRequired('headers', $this->headers, true);
34-
Model::validateRequired('statusCode', $this->statusCode, true);
35-
Model::validateRequired('body', $this->body, true);
3633
}
3734

3835
public function toMap()

src/Models/AddSmsTemplateResponseBody.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,38 @@
99
class AddSmsTemplateResponseBody extends Model
1010
{
1111
/**
12+
* @description The response code.
13+
*
14+
* The value OK indicates that the request was successful.
15+
* For more information about other response codes, see [API error codes](https://help.aliyun.com/document_detail/101346.html).
16+
*
1217
* @example OK
1318
*
1419
* @var string
1520
*/
1621
public $code;
1722

1823
/**
24+
* @description The returned message.
25+
*
1926
* @example OK
2027
*
2128
* @var string
2229
*/
2330
public $message;
2431

2532
/**
33+
* @description The request ID.
34+
*
2635
* @example F655A8D5-B967-440B-8683-DAD6FF8DE990
2736
*
2837
* @var string
2938
*/
3039
public $requestId;
3140

3241
/**
42+
* @description The code of the message template.
43+
*
3344
* @example SMS_15255****
3445
*
3546
* @var string

src/Models/CheckMobilesCardSupportRequest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,17 @@
99
class CheckMobilesCardSupportRequest extends Model
1010
{
1111
/**
12+
* @description The list of mobile phone numbers that receive messages.
13+
*
14+
* This parameter is required.
1215
* @var mixed[][]
1316
*/
1417
public $mobiles;
1518

1619
/**
20+
* @description The code of the message template. You can view the template code in the **Template Code** column on the **Templates** tab of the **Go China** page in the Alibaba Cloud SMS console.
21+
*
22+
* This parameter is required.
1723
* @example CARD_SMS_****
1824
*
1925
* @var string

0 commit comments

Comments
 (0)