author | Mikael Berthe <mikael@lilotux.net> |
Mon, 17 Apr 2017 10:28:10 +0200 | |
changeset 130 | c450bb73f59a |
parent 120 | 579912e9d0ef |
child 138 | 23d3a518d0ad |
permissions | -rw-r--r-- |
130 | 1 |
/* |
2 |
Copyright 2017 Mikael Berthe |
|
3 |
||
4 |
Licensed under the MIT license. Please see the LICENSE file is this directory. |
|
5 |
*/ |
|
6 |
||
93 | 7 |
package gondole |
8 |
||
9 |
import ( |
|
10 |
"github.com/sendgrid/rest" |
|
11 |
) |
|
12 |
||
13 |
// GetFavourites returns the list of the user's favourites |
|
14 |
func (g *Client) GetFavourites() ([]Status, error) { |
|
15 |
var faves []Status |
|
120 | 16 |
err := g.apiCall("favourites", rest.Get, nil, &faves) |
93 | 17 |
if err != nil { |
120 | 18 |
return nil, err |
93 | 19 |
} |
20 |
return faves, nil |
|
21 |
} |