author | Mikael Berthe <mikael@lilotux.net> |
Sun, 13 Jan 2019 13:25:58 +0100 | |
changeset 247 | 17e32e951670 |
parent 238 | 1c0042e76902 |
permissions | -rw-r--r-- |
208 | 1 |
/* |
2 |
Copyright 2018 Mikael Berthe |
|
3 |
||
4 |
Licensed under the MIT license. Please see the LICENSE file is this directory. |
|
5 |
*/ |
|
6 |
||
7 |
package madon |
|
8 |
||
9 |
import ( |
|
10 |
"github.com/sendgrid/rest" |
|
11 |
) |
|
12 |
||
13 |
// GetCustomEmojis returns a list with the server custom emojis |
|
14 |
func (mc *Client) GetCustomEmojis(lopt *LimitParams) ([]Emoji, error) { |
|
15 |
var emojiList []Emoji |
|
238
1c0042e76902
Do not use a global API version
Mikael Berthe <mikael@lilotux.net>
parents:
208
diff
changeset
|
16 |
if err := mc.apiCall("v1/custom_emojis", rest.Get, nil, lopt, nil, &emojiList); err != nil { |
208 | 17 |
return nil, err |
18 |
} |
|
19 |
return emojiList, nil |
|
20 |
} |