Constants.php 1.6 KB

1234567891011121314151617181920212223
  1. <?PHP
  2. const API_USER = "api";
  3. const SDK_VERSION = "1.7";
  4. const SDK_USER_AGENT = "mailgun-sdk-php";
  5. const RECIPIENT_COUNT_LIMIT = 1000;
  6. const CAMPAIGN_ID_LIMIT = 3;
  7. const TAG_LIMIT = 3;
  8. const DEFAULT_TIME_ZONE = "UTC";
  9. //Common Exception Messages
  10. const EXCEPTION_INVALID_CREDENTIALS = "Your credentials are incorrect.";
  11. const EXCEPTION_GENERIC_HTTP_ERROR = "An HTTP Error has occurred! Check your network connection and try again.";
  12. const EXCEPTION_MISSING_REQUIRED_PARAMETERS = "The parameters passed to the API were invalid. Check your inputs!";
  13. const EXCEPTION_MISSING_REQUIRED_MIME_PARAMETERS = "The parameters passed to the API were invalid. Check your inputs!";
  14. const EXCEPTION_MISSING_ENDPOINT = "The endpoint you've tried to access does not exist. Check your URL.";
  15. const TOO_MANY_RECIPIENTS = "You've exceeded the maximum recipient count (1,000) on the to field with autosend disabled.";
  16. const INVALID_PARAMETER_NON_ARRAY = "The parameter you've passed in position 2 must be an array.";
  17. const INVALID_PARAMETER_ATTACHMENT = "Attachments must be passed with an \"@\" preceding the file path. Web resources not supported.";
  18. const INVALID_PARAMETER_INLINE = "Inline images must be passed with an \"@\" preceding the file path. Web resources not supported.";
  19. const TOO_MANY_PARAMETERS_CAMPAIGNS = "You've exceeded the maximum (3) campaigns for a single message.";
  20. const TOO_MANY_PARAMETERS_TAGS = "You've exceeded the maximum (3) tags for a single message.";
  21. const TOO_MANY_PARAMETERS_RECIPIENT = "You've exceeded the maximum recipient count (1,000) on the to field with autosend disabled.";