No Description

Constants.php 2.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <?php
  2. namespace AliyunMNS;
  3. class Constants
  4. {
  5. const GMT_DATE_FORMAT = "D, d M Y H:i:s \\G\\M\\T";
  6. const MNS_VERSION_HEADER = "x-mns-version";
  7. const MNS_HEADER_PREFIX = "x-mns";
  8. const MNS_XML_NAMESPACE = "http://mns.aliyuncs.com/doc/v1/";
  9. const MNS_VERSION = "2015-06-06";
  10. const AUTHORIZATION = "Authorization";
  11. const MNS = "MNS";
  12. const CONTENT_LENGTH = "Content-Length";
  13. const CONTENT_TYPE = "Content-Type";
  14. const SECURITY_TOKEN = "security-token";
  15. const DIRECT_MAIL = "DirectMail";
  16. const DIRECT_SMS = "DirectSMS";
  17. const WEBSOCKET = "WebSocket";
  18. // XML Tag
  19. const ERROR = "Error";
  20. const ERRORS = "Errors";
  21. const DELAY_SECONDS = "DelaySeconds";
  22. const MAXIMUM_MESSAGE_SIZE = "MaximumMessageSize";
  23. const MESSAGE_RETENTION_PERIOD = "MessageRetentionPeriod";
  24. const VISIBILITY_TIMEOUT = "VisibilityTimeout";
  25. const POLLING_WAIT_SECONDS = "PollingWaitSeconds";
  26. const MESSAGE_BODY = "MessageBody";
  27. const PRIORITY = "Priority";
  28. const MESSAGE_ID = "MessageId";
  29. const MESSAGE_BODY_MD5 = "MessageBodyMD5";
  30. const ENQUEUE_TIME = "EnqueueTime";
  31. const NEXT_VISIBLE_TIME = "NextVisibleTime";
  32. const FIRST_DEQUEUE_TIME = "FirstDequeueTime";
  33. const RECEIPT_HANDLE = "ReceiptHandle";
  34. const RECEIPT_HANDLES = "ReceiptHandles";
  35. const DEQUEUE_COUNT = "DequeueCount";
  36. const ERROR_CODE = "ErrorCode";
  37. const ERROR_MESSAGE = "ErrorMessage";
  38. const ENDPOINT = "Endpoint";
  39. const STRATEGY = "NotifyStrategy";
  40. const CONTENT_FORMAT = "NotifyContentFormat";
  41. const LOGGING_BUCKET = "LoggingBucket";
  42. const LOGGING_ENABLED = "LoggingEnabled";
  43. const MESSAGE_ATTRIBUTES = "MessageAttributes";
  44. const SUBJECT = "Subject";
  45. const ACCOUNT_NAME = "AccountName";
  46. const ADDRESS_TYPE = "AddressType";
  47. const REPLY_TO_ADDRESS = "ReplyToAddress";
  48. const IS_HTML = "IsHtml";
  49. const FREE_SIGN_NAME = "FreeSignName";
  50. const TEMPLATE_CODE = "TemplateCode";
  51. const RECEIVER = "Receiver";
  52. const SMS_PARAMS = "SmsParams";
  53. const IMPORTANCE_LEVEL = "ImportanceLevel";
  54. // some MNS ErrorCodes
  55. const INVALID_ARGUMENT = "InvalidArgument";
  56. const QUEUE_ALREADY_EXIST = "QueueAlreadyExist";
  57. const QUEUE_NOT_EXIST = "QueueNotExist";
  58. const MALFORMED_XML = "MalformedXML";
  59. const MESSAGE_NOT_EXIST = "MessageNotExist";
  60. const RECEIPT_HANDLE_ERROR = "ReceiptHandleError";
  61. const BATCH_SEND_FAIL = "BatchSendFail";
  62. const BATCH_DELETE_FAIL = "BatchDeleteFail";
  63. const TOPIC_ALREADY_EXIST = "TopicAlreadyExist";
  64. const TOPIC_NOT_EXIST = "TopicNotExist";
  65. const SUBSCRIPTION_ALREADY_EXIST = "SubscriptionAlreadyExist";
  66. const SUBSCRIPTION_NOT_EXIST = "SubscriptionNotExist";
  67. }
  68. ?>