Skip to content

Commit 9c857d6

Browse files
committed
Deprecate NewV2
1 parent 5a85cbd commit 9c857d6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

client.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,12 @@ func New(accessKey string) *Client {
7272
}
7373
}
7474

75+
// NewV2 creates a new MessageBird client object.
76+
// Deprecated: use New factory instead.
77+
func NewV2(accessKey string) *Client {
78+
return New(accessKey)
79+
}
80+
7581
// Request is for internal use only and unstable.
7682
func (c *Client) Request(v interface{}, method, path string, data interface{}) error {
7783
if !strings.HasPrefix(path, "https://") && !strings.HasPrefix(path, "http://") {

0 commit comments

Comments
 (0)