diff --git a/client/client.go b/client/client.go index 7b20616a..5a1b175c 100644 --- a/client/client.go +++ b/client/client.go @@ -11,7 +11,7 @@ import ( "strings" "time" - "github.com/sendgrid/sendgrid-go/client/form" + "github.com/sendgrid/sendgrid-go/v4/client/form" ) var alphanumericRegex *regexp.Regexp diff --git a/go.mod b/go.mod index bf77c18f..e6e9f056 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/sendgrid/sendgrid-go +module github.com/sendgrid/sendgrid-go/v4 go 1.21.4 diff --git a/rest/api/v3/account_provisioning/api_service.go b/rest/api/v3/account_provisioning/api_service.go index 6459d6eb..93ed1e0f 100644 --- a/rest/api/v3/account_provisioning/api_service.go +++ b/rest/api/v3/account_provisioning/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/alerts/api_service.go b/rest/api/v3/alerts/api_service.go index 79301822..3b1d3429 100644 --- a/rest/api/v3/alerts/api_service.go +++ b/rest/api/v3/alerts/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/api_keys/api_service.go b/rest/api/v3/api_keys/api_service.go index 24d94ab9..69923b38 100644 --- a/rest/api/v3/api_keys/api_service.go +++ b/rest/api/v3/api_keys/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/domain_authentication/api_service.go b/rest/api/v3/domain_authentication/api_service.go index bfe66aff..2322d30e 100644 --- a/rest/api/v3/domain_authentication/api_service.go +++ b/rest/api/v3/domain_authentication/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/email_activity/api_service.go b/rest/api/v3/email_activity/api_service.go index 9a929e14..3c60dcc8 100644 --- a/rest/api/v3/email_activity/api_service.go +++ b/rest/api/v3/email_activity/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/email_validation/api_service.go b/rest/api/v3/email_validation/api_service.go index 12f01b4a..510a3dae 100644 --- a/rest/api/v3/email_validation/api_service.go +++ b/rest/api/v3/email_validation/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/enforced_tls/api_service.go b/rest/api/v3/enforced_tls/api_service.go index b52f212f..f6e949c8 100644 --- a/rest/api/v3/enforced_tls/api_service.go +++ b/rest/api/v3/enforced_tls/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/integrations/api_service.go b/rest/api/v3/integrations/api_service.go index 6a43a8ff..41839401 100644 --- a/rest/api/v3/integrations/api_service.go +++ b/rest/api/v3/integrations/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/ip_access_management/api_service.go b/rest/api/v3/ip_access_management/api_service.go index d43663e0..a94b6c5d 100644 --- a/rest/api/v3/ip_access_management/api_service.go +++ b/rest/api/v3/ip_access_management/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/ip_address_management/api_service.go b/rest/api/v3/ip_address_management/api_service.go index b08b7968..060a89e4 100644 --- a/rest/api/v3/ip_address_management/api_service.go +++ b/rest/api/v3/ip_address_management/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/ip_warmup/api_service.go b/rest/api/v3/ip_warmup/api_service.go index 53f0581d..961e6fe2 100644 --- a/rest/api/v3/ip_warmup/api_service.go +++ b/rest/api/v3/ip_warmup/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/ips/api_service.go b/rest/api/v3/ips/api_service.go index 63970833..ae9285f0 100644 --- a/rest/api/v3/ips/api_service.go +++ b/rest/api/v3/ips/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/link_branding/api_service.go b/rest/api/v3/link_branding/api_service.go index 53680fb0..187c383d 100644 --- a/rest/api/v3/link_branding/api_service.go +++ b/rest/api/v3/link_branding/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/lmc_campaigns/api_service.go b/rest/api/v3/lmc_campaigns/api_service.go index 8f9dfc14..bca5c394 100644 --- a/rest/api/v3/lmc_campaigns/api_service.go +++ b/rest/api/v3/lmc_campaigns/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/lmc_contactdb/api_service.go b/rest/api/v3/lmc_contactdb/api_service.go index 47aac07a..466c6925 100644 --- a/rest/api/v3/lmc_contactdb/api_service.go +++ b/rest/api/v3/lmc_contactdb/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/lmc_senders/api_service.go b/rest/api/v3/lmc_senders/api_service.go index aa0529a6..d751f2a8 100644 --- a/rest/api/v3/lmc_senders/api_service.go +++ b/rest/api/v3/lmc_senders/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/mail/api_service.go b/rest/api/v3/mail/api_service.go index 0ca11aea..dd338693 100644 --- a/rest/api/v3/mail/api_service.go +++ b/rest/api/v3/mail/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/mail_settings/api_service.go b/rest/api/v3/mail_settings/api_service.go index e9a35ea3..5d0090b1 100644 --- a/rest/api/v3/mail_settings/api_service.go +++ b/rest/api/v3/mail_settings/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/mc_custom_fields/api_service.go b/rest/api/v3/mc_custom_fields/api_service.go index c8f8f2a4..30d8a1c2 100644 --- a/rest/api/v3/mc_custom_fields/api_service.go +++ b/rest/api/v3/mc_custom_fields/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/mc_designs/api_service.go b/rest/api/v3/mc_designs/api_service.go index d0bf8bbe..e3c0d471 100644 --- a/rest/api/v3/mc_designs/api_service.go +++ b/rest/api/v3/mc_designs/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/mc_lists/api_service.go b/rest/api/v3/mc_lists/api_service.go index f7079e91..bf773900 100644 --- a/rest/api/v3/mc_lists/api_service.go +++ b/rest/api/v3/mc_lists/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/mc_segments/api_service.go b/rest/api/v3/mc_segments/api_service.go index b3304ebe..60c753a4 100644 --- a/rest/api/v3/mc_segments/api_service.go +++ b/rest/api/v3/mc_segments/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/mc_segments_2/api_service.go b/rest/api/v3/mc_segments_2/api_service.go index 6eb18a06..83115d97 100644 --- a/rest/api/v3/mc_segments_2/api_service.go +++ b/rest/api/v3/mc_segments_2/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/mc_senders/api_service.go b/rest/api/v3/mc_senders/api_service.go index d8fd91ab..cb523076 100644 --- a/rest/api/v3/mc_senders/api_service.go +++ b/rest/api/v3/mc_senders/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/mc_singlesends/api_service.go b/rest/api/v3/mc_singlesends/api_service.go index dbf3b326..7fb4e965 100644 --- a/rest/api/v3/mc_singlesends/api_service.go +++ b/rest/api/v3/mc_singlesends/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/mc_stats/api_service.go b/rest/api/v3/mc_stats/api_service.go index 913b3580..f5f00173 100644 --- a/rest/api/v3/mc_stats/api_service.go +++ b/rest/api/v3/mc_stats/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/mc_test/api_service.go b/rest/api/v3/mc_test/api_service.go index 352104a5..256a2a03 100644 --- a/rest/api/v3/mc_test/api_service.go +++ b/rest/api/v3/mc_test/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/partner/api_service.go b/rest/api/v3/partner/api_service.go index f4bf0ab0..cf4eed5d 100644 --- a/rest/api/v3/partner/api_service.go +++ b/rest/api/v3/partner/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/recipients_data_erasure/api_service.go b/rest/api/v3/recipients_data_erasure/api_service.go index b823caa4..3ece5663 100644 --- a/rest/api/v3/recipients_data_erasure/api_service.go +++ b/rest/api/v3/recipients_data_erasure/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/reverse_dns/api_service.go b/rest/api/v3/reverse_dns/api_service.go index 6e1bfe2b..551c93bf 100644 --- a/rest/api/v3/reverse_dns/api_service.go +++ b/rest/api/v3/reverse_dns/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/scheduled_sends/api_service.go b/rest/api/v3/scheduled_sends/api_service.go index e86bc8be..ba8388ce 100644 --- a/rest/api/v3/scheduled_sends/api_service.go +++ b/rest/api/v3/scheduled_sends/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/scopes/api_service.go b/rest/api/v3/scopes/api_service.go index bc846141..4a989209 100644 --- a/rest/api/v3/scopes/api_service.go +++ b/rest/api/v3/scopes/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/seq/api_service.go b/rest/api/v3/seq/api_service.go index 5a7df229..b8ba0bc4 100644 --- a/rest/api/v3/seq/api_service.go +++ b/rest/api/v3/seq/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/sso/api_service.go b/rest/api/v3/sso/api_service.go index 1564dab4..5057a0d3 100644 --- a/rest/api/v3/sso/api_service.go +++ b/rest/api/v3/sso/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/stats/api_service.go b/rest/api/v3/stats/api_service.go index 29d8f9f5..17b1d087 100644 --- a/rest/api/v3/stats/api_service.go +++ b/rest/api/v3/stats/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/subusers/api_service.go b/rest/api/v3/subusers/api_service.go index 7169b7eb..f16a63b0 100644 --- a/rest/api/v3/subusers/api_service.go +++ b/rest/api/v3/subusers/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/teammates/api_service.go b/rest/api/v3/teammates/api_service.go index 9ffc80f5..64234d36 100644 --- a/rest/api/v3/teammates/api_service.go +++ b/rest/api/v3/teammates/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/templates/api_service.go b/rest/api/v3/templates/api_service.go index 3716cd28..b43e5b40 100644 --- a/rest/api/v3/templates/api_service.go +++ b/rest/api/v3/templates/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/tracking_settings/api_service.go b/rest/api/v3/tracking_settings/api_service.go index 66f5e1d2..b4dce825 100644 --- a/rest/api/v3/tracking_settings/api_service.go +++ b/rest/api/v3/tracking_settings/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/user/api_service.go b/rest/api/v3/user/api_service.go index 67bbc6b4..dd2fc0c1 100644 --- a/rest/api/v3/user/api_service.go +++ b/rest/api/v3/user/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/verified_senders/api_service.go b/rest/api/v3/verified_senders/api_service.go index 4ef324e5..150cbc0a 100644 --- a/rest/api/v3/verified_senders/api_service.go +++ b/rest/api/v3/verified_senders/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct { diff --git a/rest/api/v3/webhooks/api_service.go b/rest/api/v3/webhooks/api_service.go index a92477c0..04a41518 100644 --- a/rest/api/v3/webhooks/api_service.go +++ b/rest/api/v3/webhooks/api_service.go @@ -14,7 +14,7 @@ package openapi import ( - sendgrid "github.com/sendgrid/sendgrid-go/client" + sendgrid "github.com/sendgrid/sendgrid-go/v4/client" ) type ApiService struct {