Constants.php
2.9 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<?php
/** @noinspection PhpMissingDocCommentInspection */
namespace AlibabaCloud\Dybaseapi\MNS;
/**
* Class Constants
*
* @package AlibabaCloud\Dybaseapi\MNS
*/
class Constants
{
const GMT_DATE_FORMAT = "D, d M Y H:i:s \\G\\M\\T";
const MNS_VERSION_HEADER = 'x-mns-version';
const MNS_HEADER_PREFIX = 'x-mns';
const MNS_XML_NAMESPACE = 'http://mns.aliyuncs.com/doc/v1/';
const MNS_VERSION = '2015-06-06';
const AUTHORIZATION = 'Authorization';
const MNS = 'MNS';
const CONTENT_LENGTH = 'Content-Length';
const CONTENT_TYPE = 'Content-Type';
const SECURITY_TOKEN = 'security-token';
const DIRECT_MAIL = 'DirectMail';
const DIRECT_SMS = 'DirectSMS';
const WEBSOCKET = 'WebSocket';
// XML Tag
const ERROR = 'Error';
const ERRORS = 'Errors';
const DELAY_SECONDS = 'DelaySeconds';
const MAXIMUM_MESSAGE_SIZE = 'MaximumMessageSize';
const MESSAGE_RETENTION_PERIOD = 'MessageRetentionPeriod';
const VISIBILITY_TIMEOUT = 'VisibilityTimeout';
const POLLING_WAIT_SECONDS = 'PollingWaitSeconds';
const MESSAGE_BODY = 'MessageBody';
const PRIORITY = 'Priority';
const MESSAGE_ID = 'MessageId';
const MESSAGE_BODY_MD5 = 'MessageBodyMD5';
const ENQUEUE_TIME = 'EnqueueTime';
const NEXT_VISIBLE_TIME = 'NextVisibleTime';
const FIRST_DEQUEUE_TIME = 'FirstDequeueTime';
const RECEIPT_HANDLE = 'ReceiptHandle';
const RECEIPT_HANDLES = 'ReceiptHandles';
const DEQUEUE_COUNT = 'DequeueCount';
const ERROR_CODE = 'ErrorCode';
const ERROR_MESSAGE = 'ErrorMessage';
const ENDPOINT = 'Endpoint';
const STRATEGY = 'NotifyStrategy';
const CONTENT_FORMAT = 'NotifyContentFormat';
const LOGGING_BUCKET = 'LoggingBucket';
const LOGGING_ENABLED = 'LoggingEnabled';
const MESSAGE_ATTRIBUTES = 'MessageAttributes';
const SUBJECT = 'Subject';
const ACCOUNT_NAME = 'AccountName';
const ADDRESS_TYPE = 'AddressType';
const REPLY_TO_ADDRESS = 'ReplyToAddress';
const IS_HTML = 'IsHtml';
const FREE_SIGN_NAME = 'FreeSignName';
const TEMPLATE_CODE = 'TemplateCode';
const RECEIVER = 'Receiver';
const SMS_PARAMS = 'SmsParams';
const IMPORTANCE_LEVEL = 'ImportanceLevel';
// some MNS ErrorCodes
const INVALID_ARGUMENT = 'InvalidArgument';
const QUEUE_ALREADY_EXIST = 'QueueAlreadyExist';
const QUEUE_NOT_EXIST = 'QueueNotExist';
const MALFORMED_XML = 'MalformedXML';
const MESSAGE_NOT_EXIST = 'MessageNotExist';
const RECEIPT_HANDLE_ERROR = 'ReceiptHandleError';
const BATCH_SEND_FAIL = 'BatchSendFail';
const BATCH_DELETE_FAIL = 'BatchDeleteFail';
const TOPIC_ALREADY_EXIST = 'TopicAlreadyExist';
const TOPIC_NOT_EXIST = 'TopicNotExist';
const SUBSCRIPTION_ALREADY_EXIST = 'SubscriptionAlreadyExist';
const SUBSCRIPTION_NOT_EXIST = 'SubscriptionNotExist';
}