equal
deleted
inserted
replaced
5 */ |
5 */ |
6 |
6 |
7 package madon |
7 package madon |
8 |
8 |
9 import ( |
9 import ( |
10 "strconv" |
|
11 |
|
12 "github.com/sendgrid/rest" |
10 "github.com/sendgrid/rest" |
13 ) |
11 ) |
14 |
12 |
15 // GetSuggestions returns a list of follow suggestions from the server |
13 // GetSuggestions returns a list of follow suggestions from the server |
16 func (mc *Client) GetSuggestions(lopt *LimitParams) ([]Account, error) { |
14 func (mc *Client) GetSuggestions(lopt *LimitParams) ([]Account, error) { |
22 } |
20 } |
23 return accountList, nil |
21 return accountList, nil |
24 } |
22 } |
25 |
23 |
26 // DeleteSuggestion removes the account from the suggestion list |
24 // DeleteSuggestion removes the account from the suggestion list |
27 func (mc *Client) DeleteSuggestion(accountID int64) error { |
25 func (mc *Client) DeleteSuggestion(accountID ActivityID) error { |
28 endPoint := "suggestions/" + strconv.FormatInt(accountID, 10) |
26 endPoint := "suggestions/" + accountID |
29 method := rest.Delete |
27 method := rest.Delete |
30 return mc.apiCall("v1/"+endPoint, method, nil, nil, nil, nil) |
28 return mc.apiCall("v1/"+endPoint, method, nil, nil, nil, nil) |
31 } |
29 } |