Skip to content

Commit 6ca8749

Browse files
authored
Update go module to v7. (#106)
As v7 introduces support for using the Verify API with email recipients, the `Verify.Recipient` field has been changed from to a string type.
1 parent 82e6ea4 commit 6ca8749

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+56
-53
lines changed

UPGRADING.md

Lines changed: 4 additions & 2 deletions

balance/balance.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package balance
33
import (
44
"net/http"
55

6-
messagebird "github.com/messagebird/go-rest-api/v6"
6+
messagebird "github.com/messagebird/go-rest-api/v7"
77
)
88

99
// Balance describes your balance information.

balance/balance_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"net/http"
55
"testing"
66

7-
messagebird "github.com/messagebird/go-rest-api/v6"
8-
"github.com/messagebird/go-rest-api/v6/internal/mbtest"
7+
messagebird "github.com/messagebird/go-rest-api/v7"
8+
"github.com/messagebird/go-rest-api/v7/internal/mbtest"
99
"github.com/stretchr/testify/assert"
1010
)
1111

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626

2727
const (
2828
// ClientVersion is used in User-Agent request header to provide server with API level.
29-
ClientVersion = "6.0.0"
29+
ClientVersion = "7.0.0"
3030

3131
// Endpoint points you to MessageBird REST API.
3232
Endpoint = "https://rest.messagebird.com"

contact/contact.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strconv"
99
"time"
1010

11-
messagebird "github.com/messagebird/go-rest-api/v6"
11+
messagebird "github.com/messagebird/go-rest-api/v7"
1212
)
1313

1414
// Contact gets returned by the API.

contact/contact_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"testing"
77
"time"
88

9-
"github.com/messagebird/go-rest-api/v6/internal/mbtest"
9+
"github.com/messagebird/go-rest-api/v7/internal/mbtest"
1010
)
1111

1212
func TestMain(m *testing.M) {

conversation/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strconv"
88
"time"
99

10-
messagebird "github.com/messagebird/go-rest-api/v6"
10+
messagebird "github.com/messagebird/go-rest-api/v7"
1111
)
1212

1313
const (

conversation/conversation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"net/http"
66

7-
messagebird "github.com/messagebird/go-rest-api/v6"
7+
messagebird "github.com/messagebird/go-rest-api/v7"
88
)
99

1010
// ListOptions can be used to set pagination options in List().

conversation/conversation_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"testing"
66
"time"
77

8-
"github.com/messagebird/go-rest-api/v6/internal/mbtest"
8+
"github.com/messagebird/go-rest-api/v7/internal/mbtest"
99
"github.com/stretchr/testify/assert"
1010
)
1111

conversation/message.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"net/http"
66

7-
messagebird "github.com/messagebird/go-rest-api/v6"
7+
messagebird "github.com/messagebird/go-rest-api/v7"
88
)
99

1010
type MessageCreateRequest struct {

0 commit comments

Comments
 (0)