diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..9f1681c2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# ref: https://github.com/github/gitignore/blob/master/Composer.gitignore + +composer.phar +/vendor/ + +# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control +# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file +# composer.lock + +# php-cs-fixer cache +.php_cs.cache +.php-cs-fixer.cache + +# PHPUnit cache +.phpunit.result.cache diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore new file mode 100644 index 00000000..7484ee59 --- /dev/null +++ b/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES new file mode 100644 index 00000000..a041b5fa --- /dev/null +++ b/.openapi-generator/FILES @@ -0,0 +1,676 @@ +.gitignore +.openapi-generator-ignore +.php-cs-fixer.dist.php +.travis.yml +README.md +composer.json +docs/Api/AliasControllerApi.md +docs/Api/ApiUserControllerApi.md +docs/Api/AttachmentControllerApi.md +docs/Api/BounceControllerApi.md +docs/Api/BulkActionsControllerApi.md +docs/Api/CommonActionsControllerApi.md +docs/Api/ContactControllerApi.md +docs/Api/DomainControllerApi.md +docs/Api/EmailControllerApi.md +docs/Api/EmailVerificationControllerApi.md +docs/Api/ExpiredControllerApi.md +docs/Api/ExportControllerApi.md +docs/Api/FormControllerApi.md +docs/Api/GroupControllerApi.md +docs/Api/InboxControllerApi.md +docs/Api/InboxForwarderControllerApi.md +docs/Api/InboxRulesetControllerApi.md +docs/Api/MailServerControllerApi.md +docs/Api/MissedEmailControllerApi.md +docs/Api/PhoneControllerApi.md +docs/Api/SentEmailsControllerApi.md +docs/Api/SmsControllerApi.md +docs/Api/TemplateControllerApi.md +docs/Api/TrackingControllerApi.md +docs/Api/WaitForControllerApi.md +docs/Api/WebhookControllerApi.md +docs/Model/AbstractWebhookPayload.md +docs/Model/AliasDto.md +docs/Model/AliasProjection.md +docs/Model/AttachmentEntity.md +docs/Model/AttachmentMetaData.md +docs/Model/AttachmentProjection.md +docs/Model/BasicAuthOptions.md +docs/Model/BounceProjection.md +docs/Model/BounceRecipientProjection.md +docs/Model/BouncedEmailDto.md +docs/Model/BouncedRecipientDto.md +docs/Model/BulkSendEmailOptions.md +docs/Model/Complaint.md +docs/Model/ConditionOption.md +docs/Model/ContactDto.md +docs/Model/ContactProjection.md +docs/Model/ContentMatchOptions.md +docs/Model/CountDto.md +docs/Model/CreateAliasOptions.md +docs/Model/CreateContactOptions.md +docs/Model/CreateDomainOptions.md +docs/Model/CreateEmergencyAddressOptions.md +docs/Model/CreateGroupOptions.md +docs/Model/CreateInboxDto.md +docs/Model/CreateInboxForwarderOptions.md +docs/Model/CreateInboxRulesetOptions.md +docs/Model/CreateTemplateOptions.md +docs/Model/CreateTrackingPixelOptions.md +docs/Model/CreateWebhookOptions.md +docs/Model/DNSLookupOptions.md +docs/Model/DNSLookupResult.md +docs/Model/DNSLookupResults.md +docs/Model/DeliveryStatusDto.md +docs/Model/DescribeDomainOptions.md +docs/Model/DescribeMailServerDomainResult.md +docs/Model/DomainDto.md +docs/Model/DomainNameRecord.md +docs/Model/DomainPreview.md +docs/Model/DownloadAttachmentDto.md +docs/Model/Email.md +docs/Model/EmailAnalysis.md +docs/Model/EmailContentMatchResult.md +docs/Model/EmailHtmlDto.md +docs/Model/EmailLinksResult.md +docs/Model/EmailPreview.md +docs/Model/EmailPreviewUrls.md +docs/Model/EmailProjection.md +docs/Model/EmailRecipients.md +docs/Model/EmailTextLinesResult.md +docs/Model/EmailValidationRequestDto.md +docs/Model/EmailVerificationResult.md +docs/Model/EmergencyAddress.md +docs/Model/EmergencyAddressDto.md +docs/Model/EmptyResponseDto.md +docs/Model/ExpirationDefaults.md +docs/Model/ExpiredInboxDto.md +docs/Model/ExpiredInboxRecordProjection.md +docs/Model/ExportLink.md +docs/Model/ExportOptions.md +docs/Model/FilterBouncedRecipientsOptions.md +docs/Model/FilterBouncedRecipientsResult.md +docs/Model/FlushExpiredInboxesResult.md +docs/Model/ForwardEmailOptions.md +docs/Model/GravatarUrl.md +docs/Model/GroupContactsDto.md +docs/Model/GroupDto.md +docs/Model/GroupProjection.md +docs/Model/HTMLValidationResult.md +docs/Model/IPAddressResult.md +docs/Model/ImapFlagOperationOptions.md +docs/Model/ImapSmtpAccessDetails.md +docs/Model/InboxByEmailAddressResult.md +docs/Model/InboxByNameResult.md +docs/Model/InboxDto.md +docs/Model/InboxExistsDto.md +docs/Model/InboxForwarderDto.md +docs/Model/InboxForwarderEventProjection.md +docs/Model/InboxForwarderTestOptions.md +docs/Model/InboxForwarderTestResult.md +docs/Model/InboxIdItem.md +docs/Model/InboxIdsResult.md +docs/Model/InboxPreview.md +docs/Model/InboxRulesetDto.md +docs/Model/InboxRulesetTestOptions.md +docs/Model/InboxRulesetTestResult.md +docs/Model/JSONSchemaDto.md +docs/Model/ListUnsubscribeRecipientProjection.md +docs/Model/MatchOption.md +docs/Model/MatchOptions.md +docs/Model/MissedEmailDto.md +docs/Model/MissedEmailProjection.md +docs/Model/NameServerRecord.md +docs/Model/OrganizationInboxProjection.md +docs/Model/PageAlias.md +docs/Model/PageAttachmentEntity.md +docs/Model/PageBouncedEmail.md +docs/Model/PageBouncedRecipients.md +docs/Model/PageComplaint.md +docs/Model/PageContactProjection.md +docs/Model/PageDeliveryStatus.md +docs/Model/PageEmailPreview.md +docs/Model/PageEmailProjection.md +docs/Model/PageEmailValidationRequest.md +docs/Model/PageExpiredInboxRecordProjection.md +docs/Model/PageGroupProjection.md +docs/Model/PageInboxForwarderDto.md +docs/Model/PageInboxForwarderEvents.md +docs/Model/PageInboxProjection.md +docs/Model/PageInboxRulesetDto.md +docs/Model/PageListUnsubscribeRecipients.md +docs/Model/PageMissedEmailProjection.md +docs/Model/PageOrganizationInboxProjection.md +docs/Model/PagePhoneNumberProjection.md +docs/Model/PageScheduledJobs.md +docs/Model/PageSentEmailProjection.md +docs/Model/PageSentEmailWithQueueProjection.md +docs/Model/PageSmsProjection.md +docs/Model/PageTemplateProjection.md +docs/Model/PageThreadProjection.md +docs/Model/PageTrackingPixelProjection.md +docs/Model/PageUnknownMissedEmailProjection.md +docs/Model/PageWebhookProjection.md +docs/Model/PageWebhookResult.md +docs/Model/PageableObject.md +docs/Model/PhoneNumberDto.md +docs/Model/PhoneNumberProjection.md +docs/Model/PhonePlanDto.md +docs/Model/RawEmailJson.md +docs/Model/Recipient.md +docs/Model/ReplyToAliasEmailOptions.md +docs/Model/ReplyToEmailOptions.md +docs/Model/ScheduledJob.md +docs/Model/ScheduledJobDto.md +docs/Model/SendEmailOptions.md +docs/Model/SendSMTPEnvelopeOptions.md +docs/Model/SendWithQueueResult.md +docs/Model/Sender.md +docs/Model/SentEmailDto.md +docs/Model/SentEmailProjection.md +docs/Model/SetInboxFavouritedOptions.md +docs/Model/SimpleSendEmailOptions.md +docs/Model/SmsDto.md +docs/Model/SmsMatchOption.md +docs/Model/SmsPreview.md +docs/Model/SmsProjection.md +docs/Model/Sort.md +docs/Model/TemplateDto.md +docs/Model/TemplatePreview.md +docs/Model/TemplateProjection.md +docs/Model/TemplateVariable.md +docs/Model/TestNewInboxForwarderOptions.md +docs/Model/TestNewInboxRulesetOptions.md +docs/Model/TestPhoneNumberOptions.md +docs/Model/ThreadProjection.md +docs/Model/TrackingPixelDto.md +docs/Model/TrackingPixelProjection.md +docs/Model/UnknownMissedEmailProjection.md +docs/Model/UnreadCount.md +docs/Model/UnseenErrorCountDto.md +docs/Model/UpdateAliasOptions.md +docs/Model/UpdateDomainOptions.md +docs/Model/UpdateGroupContacts.md +docs/Model/UpdateInboxOptions.md +docs/Model/UploadAttachmentBytesRequest.md +docs/Model/UploadAttachmentOptions.md +docs/Model/UploadMultipartFormRequest.md +docs/Model/UserInfoDto.md +docs/Model/ValidateEmailAddressListOptions.md +docs/Model/ValidateEmailAddressListResult.md +docs/Model/ValidationDto.md +docs/Model/ValidationMessage.md +docs/Model/VerifyEmailAddressOptions.md +docs/Model/VerifyWebhookSignatureOptions.md +docs/Model/VerifyWebhookSignatureResults.md +docs/Model/WaitForConditions.md +docs/Model/WaitForSingleSmsOptions.md +docs/Model/WaitForSmsConditions.md +docs/Model/WebhookBouncePayload.md +docs/Model/WebhookBounceRecipientPayload.md +docs/Model/WebhookDeliveryStatusPayload.md +docs/Model/WebhookDto.md +docs/Model/WebhookEmailOpenedPayload.md +docs/Model/WebhookEmailReadPayload.md +docs/Model/WebhookHeaderNameValue.md +docs/Model/WebhookHeaders.md +docs/Model/WebhookNewAttachmentPayload.md +docs/Model/WebhookNewContactPayload.md +docs/Model/WebhookNewEmailPayload.md +docs/Model/WebhookNewSmsPayload.md +docs/Model/WebhookProjection.md +docs/Model/WebhookRedriveResult.md +docs/Model/WebhookResultDto.md +docs/Model/WebhookTestRequest.md +docs/Model/WebhookTestResponse.md +docs/Model/WebhookTestResult.md +git_push.sh +lib/ApiException.php +lib/Apis/AliasControllerApi.php +lib/Apis/ApiUserControllerApi.php +lib/Apis/AttachmentControllerApi.php +lib/Apis/BounceControllerApi.php +lib/Apis/BulkActionsControllerApi.php +lib/Apis/CommonActionsControllerApi.php +lib/Apis/ContactControllerApi.php +lib/Apis/DomainControllerApi.php +lib/Apis/EmailControllerApi.php +lib/Apis/EmailVerificationControllerApi.php +lib/Apis/ExpiredControllerApi.php +lib/Apis/ExportControllerApi.php +lib/Apis/FormControllerApi.php +lib/Apis/GroupControllerApi.php +lib/Apis/InboxControllerApi.php +lib/Apis/InboxForwarderControllerApi.php +lib/Apis/InboxRulesetControllerApi.php +lib/Apis/MailServerControllerApi.php +lib/Apis/MissedEmailControllerApi.php +lib/Apis/PhoneControllerApi.php +lib/Apis/SentEmailsControllerApi.php +lib/Apis/SmsControllerApi.php +lib/Apis/TemplateControllerApi.php +lib/Apis/TrackingControllerApi.php +lib/Apis/WaitForControllerApi.php +lib/Apis/WebhookControllerApi.php +lib/Configuration.php +lib/HeaderSelector.php +lib/Models/AbstractWebhookPayload.php +lib/Models/AliasDto.php +lib/Models/AliasProjection.php +lib/Models/AttachmentEntity.php +lib/Models/AttachmentMetaData.php +lib/Models/AttachmentProjection.php +lib/Models/BasicAuthOptions.php +lib/Models/BounceProjection.php +lib/Models/BounceRecipientProjection.php +lib/Models/BouncedEmailDto.php +lib/Models/BouncedRecipientDto.php +lib/Models/BulkSendEmailOptions.php +lib/Models/Complaint.php +lib/Models/ConditionOption.php +lib/Models/ContactDto.php +lib/Models/ContactProjection.php +lib/Models/ContentMatchOptions.php +lib/Models/CountDto.php +lib/Models/CreateAliasOptions.php +lib/Models/CreateContactOptions.php +lib/Models/CreateDomainOptions.php +lib/Models/CreateEmergencyAddressOptions.php +lib/Models/CreateGroupOptions.php +lib/Models/CreateInboxDto.php +lib/Models/CreateInboxForwarderOptions.php +lib/Models/CreateInboxRulesetOptions.php +lib/Models/CreateTemplateOptions.php +lib/Models/CreateTrackingPixelOptions.php +lib/Models/CreateWebhookOptions.php +lib/Models/DNSLookupOptions.php +lib/Models/DNSLookupResult.php +lib/Models/DNSLookupResults.php +lib/Models/DeliveryStatusDto.php +lib/Models/DescribeDomainOptions.php +lib/Models/DescribeMailServerDomainResult.php +lib/Models/DomainDto.php +lib/Models/DomainNameRecord.php +lib/Models/DomainPreview.php +lib/Models/DownloadAttachmentDto.php +lib/Models/Email.php +lib/Models/EmailAnalysis.php +lib/Models/EmailContentMatchResult.php +lib/Models/EmailHtmlDto.php +lib/Models/EmailLinksResult.php +lib/Models/EmailPreview.php +lib/Models/EmailPreviewUrls.php +lib/Models/EmailProjection.php +lib/Models/EmailRecipients.php +lib/Models/EmailTextLinesResult.php +lib/Models/EmailValidationRequestDto.php +lib/Models/EmailVerificationResult.php +lib/Models/EmergencyAddress.php +lib/Models/EmergencyAddressDto.php +lib/Models/EmptyResponseDto.php +lib/Models/ExpirationDefaults.php +lib/Models/ExpiredInboxDto.php +lib/Models/ExpiredInboxRecordProjection.php +lib/Models/ExportLink.php +lib/Models/ExportOptions.php +lib/Models/FilterBouncedRecipientsOptions.php +lib/Models/FilterBouncedRecipientsResult.php +lib/Models/FlushExpiredInboxesResult.php +lib/Models/ForwardEmailOptions.php +lib/Models/GravatarUrl.php +lib/Models/GroupContactsDto.php +lib/Models/GroupDto.php +lib/Models/GroupProjection.php +lib/Models/HTMLValidationResult.php +lib/Models/IPAddressResult.php +lib/Models/ImapFlagOperationOptions.php +lib/Models/ImapSmtpAccessDetails.php +lib/Models/InboxByEmailAddressResult.php +lib/Models/InboxByNameResult.php +lib/Models/InboxDto.php +lib/Models/InboxExistsDto.php +lib/Models/InboxForwarderDto.php +lib/Models/InboxForwarderEventProjection.php +lib/Models/InboxForwarderTestOptions.php +lib/Models/InboxForwarderTestResult.php +lib/Models/InboxIdItem.php +lib/Models/InboxIdsResult.php +lib/Models/InboxPreview.php +lib/Models/InboxRulesetDto.php +lib/Models/InboxRulesetTestOptions.php +lib/Models/InboxRulesetTestResult.php +lib/Models/JSONSchemaDto.php +lib/Models/ListUnsubscribeRecipientProjection.php +lib/Models/MatchOption.php +lib/Models/MatchOptions.php +lib/Models/MissedEmailDto.php +lib/Models/MissedEmailProjection.php +lib/Models/ModelInterface.php +lib/Models/NameServerRecord.php +lib/Models/OrganizationInboxProjection.php +lib/Models/PageAlias.php +lib/Models/PageAttachmentEntity.php +lib/Models/PageBouncedEmail.php +lib/Models/PageBouncedRecipients.php +lib/Models/PageComplaint.php +lib/Models/PageContactProjection.php +lib/Models/PageDeliveryStatus.php +lib/Models/PageEmailPreview.php +lib/Models/PageEmailProjection.php +lib/Models/PageEmailValidationRequest.php +lib/Models/PageExpiredInboxRecordProjection.php +lib/Models/PageGroupProjection.php +lib/Models/PageInboxForwarderDto.php +lib/Models/PageInboxForwarderEvents.php +lib/Models/PageInboxProjection.php +lib/Models/PageInboxRulesetDto.php +lib/Models/PageListUnsubscribeRecipients.php +lib/Models/PageMissedEmailProjection.php +lib/Models/PageOrganizationInboxProjection.php +lib/Models/PagePhoneNumberProjection.php +lib/Models/PageScheduledJobs.php +lib/Models/PageSentEmailProjection.php +lib/Models/PageSentEmailWithQueueProjection.php +lib/Models/PageSmsProjection.php +lib/Models/PageTemplateProjection.php +lib/Models/PageThreadProjection.php +lib/Models/PageTrackingPixelProjection.php +lib/Models/PageUnknownMissedEmailProjection.php +lib/Models/PageWebhookProjection.php +lib/Models/PageWebhookResult.php +lib/Models/PageableObject.php +lib/Models/PhoneNumberDto.php +lib/Models/PhoneNumberProjection.php +lib/Models/PhonePlanDto.php +lib/Models/RawEmailJson.php +lib/Models/Recipient.php +lib/Models/ReplyToAliasEmailOptions.php +lib/Models/ReplyToEmailOptions.php +lib/Models/ScheduledJob.php +lib/Models/ScheduledJobDto.php +lib/Models/SendEmailOptions.php +lib/Models/SendSMTPEnvelopeOptions.php +lib/Models/SendWithQueueResult.php +lib/Models/Sender.php +lib/Models/SentEmailDto.php +lib/Models/SentEmailProjection.php +lib/Models/SetInboxFavouritedOptions.php +lib/Models/SimpleSendEmailOptions.php +lib/Models/SmsDto.php +lib/Models/SmsMatchOption.php +lib/Models/SmsPreview.php +lib/Models/SmsProjection.php +lib/Models/Sort.php +lib/Models/TemplateDto.php +lib/Models/TemplatePreview.php +lib/Models/TemplateProjection.php +lib/Models/TemplateVariable.php +lib/Models/TestNewInboxForwarderOptions.php +lib/Models/TestNewInboxRulesetOptions.php +lib/Models/TestPhoneNumberOptions.php +lib/Models/ThreadProjection.php +lib/Models/TrackingPixelDto.php +lib/Models/TrackingPixelProjection.php +lib/Models/UnknownMissedEmailProjection.php +lib/Models/UnreadCount.php +lib/Models/UnseenErrorCountDto.php +lib/Models/UpdateAliasOptions.php +lib/Models/UpdateDomainOptions.php +lib/Models/UpdateGroupContacts.php +lib/Models/UpdateInboxOptions.php +lib/Models/UploadAttachmentBytesRequest.php +lib/Models/UploadAttachmentOptions.php +lib/Models/UploadMultipartFormRequest.php +lib/Models/UserInfoDto.php +lib/Models/ValidateEmailAddressListOptions.php +lib/Models/ValidateEmailAddressListResult.php +lib/Models/ValidationDto.php +lib/Models/ValidationMessage.php +lib/Models/VerifyEmailAddressOptions.php +lib/Models/VerifyWebhookSignatureOptions.php +lib/Models/VerifyWebhookSignatureResults.php +lib/Models/WaitForConditions.php +lib/Models/WaitForSingleSmsOptions.php +lib/Models/WaitForSmsConditions.php +lib/Models/WebhookBouncePayload.php +lib/Models/WebhookBounceRecipientPayload.php +lib/Models/WebhookDeliveryStatusPayload.php +lib/Models/WebhookDto.php +lib/Models/WebhookEmailOpenedPayload.php +lib/Models/WebhookEmailReadPayload.php +lib/Models/WebhookHeaderNameValue.php +lib/Models/WebhookHeaders.php +lib/Models/WebhookNewAttachmentPayload.php +lib/Models/WebhookNewContactPayload.php +lib/Models/WebhookNewEmailPayload.php +lib/Models/WebhookNewSmsPayload.php +lib/Models/WebhookProjection.php +lib/Models/WebhookRedriveResult.php +lib/Models/WebhookResultDto.php +lib/Models/WebhookTestRequest.php +lib/Models/WebhookTestResponse.php +lib/Models/WebhookTestResult.php +lib/ObjectSerializer.php +phpunit.xml.dist +test/Api/AliasControllerApiTest.php +test/Api/ApiUserControllerApiTest.php +test/Api/AttachmentControllerApiTest.php +test/Api/BounceControllerApiTest.php +test/Api/BulkActionsControllerApiTest.php +test/Api/CommonActionsControllerApiTest.php +test/Api/ContactControllerApiTest.php +test/Api/DomainControllerApiTest.php +test/Api/EmailControllerApiTest.php +test/Api/EmailVerificationControllerApiTest.php +test/Api/ExpiredControllerApiTest.php +test/Api/ExportControllerApiTest.php +test/Api/FormControllerApiTest.php +test/Api/GroupControllerApiTest.php +test/Api/InboxControllerApiTest.php +test/Api/InboxForwarderControllerApiTest.php +test/Api/InboxRulesetControllerApiTest.php +test/Api/MailServerControllerApiTest.php +test/Api/MissedEmailControllerApiTest.php +test/Api/PhoneControllerApiTest.php +test/Api/SentEmailsControllerApiTest.php +test/Api/SmsControllerApiTest.php +test/Api/TemplateControllerApiTest.php +test/Api/TrackingControllerApiTest.php +test/Api/WaitForControllerApiTest.php +test/Api/WebhookControllerApiTest.php +test/Model/AbstractWebhookPayloadTest.php +test/Model/AliasDtoTest.php +test/Model/AliasProjectionTest.php +test/Model/AttachmentEntityTest.php +test/Model/AttachmentMetaDataTest.php +test/Model/AttachmentProjectionTest.php +test/Model/BasicAuthOptionsTest.php +test/Model/BounceProjectionTest.php +test/Model/BounceRecipientProjectionTest.php +test/Model/BouncedEmailDtoTest.php +test/Model/BouncedRecipientDtoTest.php +test/Model/BulkSendEmailOptionsTest.php +test/Model/ComplaintTest.php +test/Model/ConditionOptionTest.php +test/Model/ContactDtoTest.php +test/Model/ContactProjectionTest.php +test/Model/ContentMatchOptionsTest.php +test/Model/CountDtoTest.php +test/Model/CreateAliasOptionsTest.php +test/Model/CreateContactOptionsTest.php +test/Model/CreateDomainOptionsTest.php +test/Model/CreateEmergencyAddressOptionsTest.php +test/Model/CreateGroupOptionsTest.php +test/Model/CreateInboxDtoTest.php +test/Model/CreateInboxForwarderOptionsTest.php +test/Model/CreateInboxRulesetOptionsTest.php +test/Model/CreateTemplateOptionsTest.php +test/Model/CreateTrackingPixelOptionsTest.php +test/Model/CreateWebhookOptionsTest.php +test/Model/DNSLookupOptionsTest.php +test/Model/DNSLookupResultTest.php +test/Model/DNSLookupResultsTest.php +test/Model/DeliveryStatusDtoTest.php +test/Model/DescribeDomainOptionsTest.php +test/Model/DescribeMailServerDomainResultTest.php +test/Model/DomainDtoTest.php +test/Model/DomainNameRecordTest.php +test/Model/DomainPreviewTest.php +test/Model/DownloadAttachmentDtoTest.php +test/Model/EmailAnalysisTest.php +test/Model/EmailContentMatchResultTest.php +test/Model/EmailHtmlDtoTest.php +test/Model/EmailLinksResultTest.php +test/Model/EmailPreviewTest.php +test/Model/EmailPreviewUrlsTest.php +test/Model/EmailProjectionTest.php +test/Model/EmailRecipientsTest.php +test/Model/EmailTest.php +test/Model/EmailTextLinesResultTest.php +test/Model/EmailValidationRequestDtoTest.php +test/Model/EmailVerificationResultTest.php +test/Model/EmergencyAddressDtoTest.php +test/Model/EmergencyAddressTest.php +test/Model/EmptyResponseDtoTest.php +test/Model/ExpirationDefaultsTest.php +test/Model/ExpiredInboxDtoTest.php +test/Model/ExpiredInboxRecordProjectionTest.php +test/Model/ExportLinkTest.php +test/Model/ExportOptionsTest.php +test/Model/FilterBouncedRecipientsOptionsTest.php +test/Model/FilterBouncedRecipientsResultTest.php +test/Model/FlushExpiredInboxesResultTest.php +test/Model/ForwardEmailOptionsTest.php +test/Model/GravatarUrlTest.php +test/Model/GroupContactsDtoTest.php +test/Model/GroupDtoTest.php +test/Model/GroupProjectionTest.php +test/Model/HTMLValidationResultTest.php +test/Model/IPAddressResultTest.php +test/Model/ImapFlagOperationOptionsTest.php +test/Model/ImapSmtpAccessDetailsTest.php +test/Model/InboxByEmailAddressResultTest.php +test/Model/InboxByNameResultTest.php +test/Model/InboxDtoTest.php +test/Model/InboxExistsDtoTest.php +test/Model/InboxForwarderDtoTest.php +test/Model/InboxForwarderEventProjectionTest.php +test/Model/InboxForwarderTestOptionsTest.php +test/Model/InboxForwarderTestResultTest.php +test/Model/InboxIdItemTest.php +test/Model/InboxIdsResultTest.php +test/Model/InboxPreviewTest.php +test/Model/InboxRulesetDtoTest.php +test/Model/InboxRulesetTestOptionsTest.php +test/Model/InboxRulesetTestResultTest.php +test/Model/JSONSchemaDtoTest.php +test/Model/ListUnsubscribeRecipientProjectionTest.php +test/Model/MatchOptionTest.php +test/Model/MatchOptionsTest.php +test/Model/MissedEmailDtoTest.php +test/Model/MissedEmailProjectionTest.php +test/Model/NameServerRecordTest.php +test/Model/OrganizationInboxProjectionTest.php +test/Model/PageAliasTest.php +test/Model/PageAttachmentEntityTest.php +test/Model/PageBouncedEmailTest.php +test/Model/PageBouncedRecipientsTest.php +test/Model/PageComplaintTest.php +test/Model/PageContactProjectionTest.php +test/Model/PageDeliveryStatusTest.php +test/Model/PageEmailPreviewTest.php +test/Model/PageEmailProjectionTest.php +test/Model/PageEmailValidationRequestTest.php +test/Model/PageExpiredInboxRecordProjectionTest.php +test/Model/PageGroupProjectionTest.php +test/Model/PageInboxForwarderDtoTest.php +test/Model/PageInboxForwarderEventsTest.php +test/Model/PageInboxProjectionTest.php +test/Model/PageInboxRulesetDtoTest.php +test/Model/PageListUnsubscribeRecipientsTest.php +test/Model/PageMissedEmailProjectionTest.php +test/Model/PageOrganizationInboxProjectionTest.php +test/Model/PagePhoneNumberProjectionTest.php +test/Model/PageScheduledJobsTest.php +test/Model/PageSentEmailProjectionTest.php +test/Model/PageSentEmailWithQueueProjectionTest.php +test/Model/PageSmsProjectionTest.php +test/Model/PageTemplateProjectionTest.php +test/Model/PageThreadProjectionTest.php +test/Model/PageTrackingPixelProjectionTest.php +test/Model/PageUnknownMissedEmailProjectionTest.php +test/Model/PageWebhookProjectionTest.php +test/Model/PageWebhookResultTest.php +test/Model/PageableObjectTest.php +test/Model/PhoneNumberDtoTest.php +test/Model/PhoneNumberProjectionTest.php +test/Model/PhonePlanDtoTest.php +test/Model/RawEmailJsonTest.php +test/Model/RecipientTest.php +test/Model/ReplyToAliasEmailOptionsTest.php +test/Model/ReplyToEmailOptionsTest.php +test/Model/ScheduledJobDtoTest.php +test/Model/ScheduledJobTest.php +test/Model/SendEmailOptionsTest.php +test/Model/SendSMTPEnvelopeOptionsTest.php +test/Model/SendWithQueueResultTest.php +test/Model/SenderTest.php +test/Model/SentEmailDtoTest.php +test/Model/SentEmailProjectionTest.php +test/Model/SetInboxFavouritedOptionsTest.php +test/Model/SimpleSendEmailOptionsTest.php +test/Model/SmsDtoTest.php +test/Model/SmsMatchOptionTest.php +test/Model/SmsPreviewTest.php +test/Model/SmsProjectionTest.php +test/Model/SortTest.php +test/Model/TemplateDtoTest.php +test/Model/TemplatePreviewTest.php +test/Model/TemplateProjectionTest.php +test/Model/TemplateVariableTest.php +test/Model/TestNewInboxForwarderOptionsTest.php +test/Model/TestNewInboxRulesetOptionsTest.php +test/Model/TestPhoneNumberOptionsTest.php +test/Model/ThreadProjectionTest.php +test/Model/TrackingPixelDtoTest.php +test/Model/TrackingPixelProjectionTest.php +test/Model/UnknownMissedEmailProjectionTest.php +test/Model/UnreadCountTest.php +test/Model/UnseenErrorCountDtoTest.php +test/Model/UpdateAliasOptionsTest.php +test/Model/UpdateDomainOptionsTest.php +test/Model/UpdateGroupContactsTest.php +test/Model/UpdateInboxOptionsTest.php +test/Model/UploadAttachmentBytesRequestTest.php +test/Model/UploadAttachmentOptionsTest.php +test/Model/UploadMultipartFormRequestTest.php +test/Model/UserInfoDtoTest.php +test/Model/ValidateEmailAddressListOptionsTest.php +test/Model/ValidateEmailAddressListResultTest.php +test/Model/ValidationDtoTest.php +test/Model/ValidationMessageTest.php +test/Model/VerifyEmailAddressOptionsTest.php +test/Model/VerifyWebhookSignatureOptionsTest.php +test/Model/VerifyWebhookSignatureResultsTest.php +test/Model/WaitForConditionsTest.php +test/Model/WaitForSingleSmsOptionsTest.php +test/Model/WaitForSmsConditionsTest.php +test/Model/WebhookBouncePayloadTest.php +test/Model/WebhookBounceRecipientPayloadTest.php +test/Model/WebhookDeliveryStatusPayloadTest.php +test/Model/WebhookDtoTest.php +test/Model/WebhookEmailOpenedPayloadTest.php +test/Model/WebhookEmailReadPayloadTest.php +test/Model/WebhookHeaderNameValueTest.php +test/Model/WebhookHeadersTest.php +test/Model/WebhookNewAttachmentPayloadTest.php +test/Model/WebhookNewContactPayloadTest.php +test/Model/WebhookNewEmailPayloadTest.php +test/Model/WebhookNewSmsPayloadTest.php +test/Model/WebhookProjectionTest.php +test/Model/WebhookRedriveResultTest.php +test/Model/WebhookResultDtoTest.php +test/Model/WebhookTestRequestTest.php +test/Model/WebhookTestResponseTest.php +test/Model/WebhookTestResultTest.php diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION new file mode 100644 index 00000000..0df17dd0 --- /dev/null +++ b/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.2.1 \ No newline at end of file diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php new file mode 100644 index 00000000..af9cf39f --- /dev/null +++ b/.php-cs-fixer.dist.php @@ -0,0 +1,29 @@ +in(__DIR__) + ->exclude('vendor') + ->exclude('test') + ->exclude('tests') +; + +$config = new PhpCsFixer\Config(); +return $config->setRules([ + '@PSR12' => true, + 'phpdoc_order' => true, + 'array_syntax' => [ 'syntax' => 'short' ], + 'strict_comparison' => true, + 'strict_param' => true, + 'no_trailing_whitespace' => false, + 'no_trailing_whitespace_in_comment' => false, + 'braces' => false, + 'single_blank_line_at_eof' => false, + 'blank_line_after_namespace' => false, + 'no_leading_import_slash' => false, + ]) + ->setFinder($finder) +; diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..667b8156 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,8 @@ +language: php +# Bionic environment has preinstalled PHP from 7.1 to 7.4 +# https://docs.travis-ci.com/user/reference/bionic/#php-support +dist: bionic +php: + - 7.4 +before_install: "composer install" +script: "vendor/bin/phpunit" diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..b1578dad --- /dev/null +++ b/LICENSE @@ -0,0 +1,7 @@ +Copyright 2023 MailSlurp Email API (Provided by Pettman OÜ, Estonia) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 00000000..e7f027a3 --- /dev/null +++ b/README.md @@ -0,0 +1,426 @@ +# PHP Email API - Documentation + +> Create and manage email addresses in PHP. Send and receive emails and attachments in code and tests. + +## Quick links + +- [Download PHP Plugin](https://www.github.com/mailslurp/mailslurp-client-php/) +- [GitHub Repository](https://www.github.com/mailslurp/mailslurp-client-php/) +- [Official PHP Library](https://packagist.org/packages/mailslurp/mailslurp-client-php) +- [Full method documentation](https://docs.mailslurp.com/php/docs/) + +## Examples + +- [PHP Codeception Selenium Example](https://www.mailslurp.com/examples/php-test-email-api-codeception/) +- [PHPUnit Example](https://www.mailslurp.com/examples/phpunit-email-testing/) +- [PHP send email with SMTP](https://www.mailslurp.com/smtp/php-send-email-smtp/) + +## Get started + +MailSlurp is an email API that lets you create email addresses on demand then send and receive emails in code and tests. **No MailServer is required**. + +This section describes how to get up and running with the PHP client. To use another language or the REST API see the [developer page](https://www.mailslurp.com/developers/). + +See the examples page for [code examples and use with common frameworks](https://www.mailslurp.com/examples/). + +See the method documentation for a [list of all functions](https://docs.mailslurp.com/php/docs/). + +## Get an API Key + +You need a free MailSlurp account to use the service. [Sign up for a free account](https://app.mailslurp.com/sign-up/) first. + +Once signed up [login your dashboard](https://app.mailslurp.com/login/). Find your API Key and copy the code. You'll need this to configure the MailSlurp client in PHP. + +![find-api-key](https://www.mailslurp.com/assets/guides/find-api-key.png) + +Copy your API Key from the [MailSlurp dashboard](https://app.mailslurp.com). + +## PHP Setup + +The client is tested for PHP 7 and requires the following non-default PHP extensions to be installed: + +```bash +php-ext-curl +php-xml +php-mbstring +``` + +Typically these come with most PHP installations. They can also be installed like so: + +`sudo apt-get install php-ext-curl php-mbstring php-xml` + +## Add PHP Library + +There are several ways to install MailSlurp. + +### a) Composer dependency + +If you use the [composer package manager](https://getcomposer.org) you can run + +```bash +composer require mailslurp/mailslurp-client-php +``` + +Or add it to your `composer.json` file: + +```json +{ + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/mailslurp/mailslurp-client-php.git" + } + ], + "require": { + "mailslurp/mailslurp-client-php": "*@dev" + } +} +``` + +Then include the library with the composer autoload convention: + +```php + + +![php-email-library-github](https://www.mailslurp.com/assets/guides/php-download.png) + +