Add GetAccountFollowing
This commit is contained in:
parent
0750bedc85
commit
bcdd8d879b
1 changed files with 10 additions and 0 deletions
10
mastodon.go
10
mastodon.go
|
@ -235,6 +235,16 @@ func (c *Client) GetAccountFollowers(id int64) ([]*Account, error) {
|
||||||
return accounts, nil
|
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.
|
// GetTimelineHome return statuses from home timeline.
|
||||||
func (c *Client) GetTimelineHome() ([]*Status, error) {
|
func (c *Client) GetTimelineHome() ([]*Status, error) {
|
||||||
var statuses []*Status
|
var statuses []*Status
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue