Skip to content

Commit

Permalink
chore: moving to v4 (#488)
Browse files Browse the repository at this point in the history
* chore: moving to v4

* chore: update readme with v4
  • Loading branch information
tiwarishubham635 authored Oct 4, 2024
1 parent 6d5850a commit f026436
Show file tree
Hide file tree
Showing 180 changed files with 125 additions and 3,416 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ package main
import (
"encoding/json"
"fmt"
"github.com/sendgrid/sendgrid-go"
MailV3 "github.com/sendgrid/sendgrid-go/rest/api/v3/mail"
"github.com/sendgrid/sendgrid-go/v4"
MailV3 "github.com/sendgrid/sendgrid-go/v4/rest/api/v3/mail"
"net/http"
"os"
)
Expand Down
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/sendgrid/sendgrid-go
module github.com/sendgrid/sendgrid-go/v4

go 1.21.4

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/account_provisioning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.491818+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:43.746152+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/account_provisioning/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/alerts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.491895+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:43.743830+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/alerts/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/api_keys/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.492228+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:43.743443+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/api_keys/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/domain_authentication/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.511283+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:43.763997+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/domain_authentication/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/email_activity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.497877+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:43.745239+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/email_activity/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/email_validation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.492490+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:43.748458+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/email_validation/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/enforced_tls/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.490412+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:43.741092+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/enforced_tls/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/integrations/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.495372+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:43.743581+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/integrations/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/ip_access_management/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.499792+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:43.740566+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/ip_access_management/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/ip_address_management/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.519876+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:43.815724+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/ip_address_management/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/ip_warmup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.498963+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:43.742744+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/ip_warmup/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/ips/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.517402+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:43.751051+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/ips/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/link_branding/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.493812+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:43.743371+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/link_branding/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/lmc_campaigns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.498878+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:43.745950+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/lmc_campaigns/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/lmc_contactdb/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.502496+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:43.767823+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/lmc_contactdb/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/lmc_senders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.505489+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:43.744540+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/lmc_senders/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/mail/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.956960+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:44.136718+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/mail/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/mail_settings/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:01.948903+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:44.128063+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/mail_settings/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/mc_custom_fields/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:02.005526+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:44.199940+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/mc_custom_fields/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/mc_designs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:02.002686+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:44.195222+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/mc_designs/api_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion rest/api/v3/mc_lists/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This API client was generated by the [OpenAPI Generator](https://openapi-generat

- API version: 1.0.0
- Package version:
- Build date: 2024-10-04T18:29:02.113131+05:30[Asia/Kolkata]
- Build date: 2024-10-04T22:46:44.182863+05:30[Asia/Kolkata]
- Build package: com.sendgrid.oai.go.SendgridGoGenerator
For more information, please visit [https://support.sendgrid.com/hc/en-us](https://support.sendgrid.com/hc/en-us)

Expand Down
Loading

0 comments on commit f026436

Please sign in to comment.