You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Installation
13
13
The easiest way to use the MessageBird API in your Go project is to install it using *go get*:
14
14
15
15
```
16
-
$ go get github.com/messagebird/go-rest-api/messagebird
16
+
$ go get github.com/messagebird/go-rest-api
17
17
```
18
18
19
19
If this doesn't work, you probably haven't set your [GOPATH](https://code.google.com/p/go-wiki/wiki/GOPATH) variable.
@@ -23,20 +23,20 @@ Examples
23
23
We have put some self-explanatory examples in the [examples](https://github.com/messagebird/go-rest-api/tree/master/examples) directory, but here is a quick example on how to get started. Assuming the **go get** installation worked, you can import the messagebird package like this:
Now you can query the API for information or send data. For example, if we want to request our balance information you'd do something like this:
36
36
37
37
```go
38
38
// Request the balance information, returned as a Balance object.
39
-
balance, err:=mb.Balance()
39
+
balance, err:=client.Balance()
40
40
if err != nil {
41
41
fmt.Println(err)
42
42
os.Exit(1)
@@ -74,4 +74,4 @@ Complete documentation, instructions, and examples are available at:
74
74
75
75
License
76
76
-------
77
-
The MessageBird REST Client for Go is licensed under [The BSD 2-Clause License](http://opensource.org/licenses/BSD-2-Clause). Copyright (c) 2014, MessageBird
77
+
The MessageBird REST Client for Go is licensed under [The BSD 2-Clause License](http://opensource.org/licenses/BSD-2-Clause). Copyright (c) 2014, 2015, MessageBird
0 commit comments