Skip to content

Commit 34a3125

Browse files
committed
Update the README to reflect the changes
1 parent c15cd57 commit 34a3125

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Installation
1313
The easiest way to use the MessageBird API in your Go project is to install it using *go get*:
1414

1515
```
16-
$ go get github.com/messagebird/go-rest-api/messagebird
16+
$ go get github.com/messagebird/go-rest-api
1717
```
1818

1919
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
2323
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:
2424

2525
```go
26-
import "github.com/messagebird/go-rest-api/messagebird"
26+
import messagebird "github.com/messagebird/go-rest-api"
2727
```
2828

2929
Then, create an instance of **messagebird.Client**:
3030

3131
```go
32-
mb := messagebird.New("test_gshuPaZoeEG6ovbc8M79w0QyM")
32+
client := messagebird.New("test_gshuPaZoeEG6ovbc8M79w0QyM")
3333
```
3434

3535
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:
3636

3737
```go
3838
// Request the balance information, returned as a Balance object.
39-
balance, err := mb.Balance()
39+
balance, err := client.Balance()
4040
if err != nil {
4141
fmt.Println(err)
4242
os.Exit(1)
@@ -74,4 +74,4 @@ Complete documentation, instructions, and examples are available at:
7474

7575
License
7676
-------
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

Comments
 (0)