Merge pull request #6 from 178inaba/following

Add GetAccountFollowing
pull/7/head
mattn 2017-04-14 17:42:11 +09:00 committed by GitHub
commit 73f943d2d3
1 changed files with 10 additions and 0 deletions

View File

@ -245,6 +245,16 @@ func (c *Client) GetAccountFollowers(id int64) ([]*Account, error) {
return accounts, nil
}
// GetAccountFollowing return following list.
func (c *Client) GetAccountFollowing(id int64) ([]*Account, error) {
var accounts []*Account
err := c.doAPI("GET", fmt.Sprintf("/api/v1/accounts/%d/following", id), nil, &accounts)
if err != nil {
return nil, err
}
return accounts, nil
}
// GetTimelineHome return statuses from home timeline.
func (c *Client) GetTimelineHome() ([]*Status, error) {
var statuses []*Status