equal
deleted
inserted
replaced
13 // GetEndorsements returns the list of user's endorsements |
13 // GetEndorsements returns the list of user's endorsements |
14 func (mc *Client) GetEndorsements(lopt *LimitParams) ([]Account, error) { |
14 func (mc *Client) GetEndorsements(lopt *LimitParams) ([]Account, error) { |
15 endPoint := "endorsements" |
15 endPoint := "endorsements" |
16 method := rest.Get |
16 method := rest.Get |
17 var accountList []Account |
17 var accountList []Account |
18 if err := mc.apiCall(endPoint, method, nil, lopt, nil, &accountList); err != nil { |
18 if err := mc.apiCall("v1/"+endPoint, method, nil, lopt, nil, &accountList); err != nil { |
19 return nil, err |
19 return nil, err |
20 } |
20 } |
21 return accountList, nil |
21 return accountList, nil |
22 } |
22 } |
23 |
23 |