author | Mikael Berthe <mikael@lilotux.net> |
Tue, 18 Apr 2017 19:31:42 +0200 | |
changeset 136 | 1af0a6199a93 |
parent 130 | c450bb73f59a |
child 138 | 23d3a518d0ad |
permissions | -rw-r--r-- |
/* Copyright 2017 Mikael Berthe Licensed under the MIT license. Please see the LICENSE file is this directory. */ package gondole import ( "github.com/sendgrid/rest" ) // GetFavourites returns the list of the user's favourites func (g *Client) GetFavourites() ([]Status, error) { var faves []Status err := g.apiCall("favourites", rest.Get, nil, &faves) if err != nil { return nil, err } return faves, nil }