We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2fa24b commit 6cd2bf5Copy full SHA for 6cd2bf5
README.md
@@ -25,7 +25,7 @@ Examples
25
Here is a quick example on how to get started. Assuming the **go get** installation worked, you can import the messagebird package like this:
26
27
```go
28
-import messagebird "github.com/messagebird/go-rest-api"
+import "github.com/messagebird/go-rest-api"
29
```
30
31
Then, create an instance of **messagebird.Client**:
@@ -42,7 +42,7 @@ balance, err := client.Balance()
42
if err != nil {
43
// messagebird.ErrResponse means custom JSON errors.
44
if err == messagebird.ErrResponse {
45
- for _, mbError := range object.Errors {
+ for _, mbError := range balance.Errors {
46
fmt.Printf("Error: %#v\n", mbError)
47
}
48
0 commit comments