@@ -2,7 +2,7 @@ MessageBird's REST API for Go
2
2
=============================
3
3
This repository contains the open source Go client for MessageBird's REST API. Documentation can be found at: https://developers.messagebird.com .
4
4
5
- [ ![ Build Status] ( https://travis-ci.org/messagebird/go-rest-api.svg?branch=master )] ( https://travis-ci.org/messagebird/go-rest-api ) [ ![ PkgGoDev] ( https://pkg.go.dev/badge/github.com/messagebird/go-rest-api/v6 )] ( https://pkg.go.dev/github.com/messagebird/go-rest-api/v6 )
5
+ [ ![ Build Status] ( https://travis-ci.org/messagebird/go-rest-api.svg?branch=master )] ( https://travis-ci.org/messagebird/go-rest-api ) [ ![ PkgGoDev] ( https://pkg.go.dev/badge/github.com/messagebird/go-rest-api/v7 )] ( https://pkg.go.dev/github.com/messagebird/go-rest-api/v7 )
6
6
7
7
Requirements
8
8
------------
@@ -15,15 +15,15 @@ Installation
15
15
The easiest way to use the MessageBird API in your Go project is to install it using * go get* :
16
16
17
17
```
18
- $ go get github.com/messagebird/go-rest-api/v6
18
+ $ go get github.com/messagebird/go-rest-api/v7
19
19
```
20
20
21
21
Examples
22
22
--------
23
23
Here is a quick example on how to get started. Assuming the ** go get** installation worked, you can import the messagebird package like this:
24
24
25
25
``` go
26
- import " github.com/messagebird/go-rest-api/v6 "
26
+ import " github.com/messagebird/go-rest-api/v7 "
27
27
```
28
28
29
29
Then, create an instance of ** messagebird.Client** . It can be used to access the MessageBird APIs.
@@ -69,8 +69,8 @@ For this reason, errors returned by the `voice` package are of type `voice.Error
69
69
An example of "simple" error handling is shown in the example above. Let's look how we can gain more in-depth insight in what exactly went wrong:
70
70
71
71
``` go
72
- import " github.com/messagebird/go-rest-api/v6 "
73
- import " github.com/messagebird/go-rest-api/v6 /sms"
72
+ import " github.com/messagebird/go-rest-api/v7 "
73
+ import " github.com/messagebird/go-rest-api/v7 /sms"
74
74
75
75
// ...
76
76
@@ -91,7 +91,7 @@ if err != nil {
91
91
` voice.ErrorResponse ` is very similar, except that it holds ` voice.Error ` structs - those contain only ` Code ` and ` Message ` (not description!) fields:
92
92
93
93
``` go
94
- import " github.com/messagebird/go-rest-api/v6 /voice"
94
+ import " github.com/messagebird/go-rest-api/v7 /voice"
95
95
96
96
// ...
97
97
0 commit comments