author | Mikael Berthe <mikael@lilotux.net> |
Sat, 15 Apr 2017 10:26:36 +0200 | |
changeset 120 | 579912e9d0ef |
parent 98 | 5d803adfc57e |
child 130 | c450bb73f59a |
permissions | -rw-r--r-- |
93 | 1 |
package gondole |
2 |
||
3 |
import ( |
|
4 |
"github.com/sendgrid/rest" |
|
5 |
) |
|
6 |
||
7 |
// GetFavourites returns the list of the user's favourites |
|
8 |
func (g *Client) GetFavourites() ([]Status, error) { |
|
9 |
var faves []Status |
|
120 | 10 |
err := g.apiCall("favourites", rest.Get, nil, &faves) |
93 | 11 |
if err != nil { |
120 | 12 |
return nil, err |
93 | 13 |
} |
14 |
return faves, nil |
|
15 |
} |