diff --git a/accounts.go b/accounts.go index 751e3d3..4504758 100644 --- a/accounts.go +++ b/accounts.go @@ -66,6 +66,16 @@ func (c *Client) GetAccountFollowing(id int64) ([]*Account, error) { return accounts, nil } +// GetBlocks return block list. +func (c *Client) GetBlocks() ([]*Account, error) { + var accounts []*Account + err := c.doAPI(http.MethodGet, "/api/v1/blocks", nil, &accounts) + if err != nil { + return nil, err + } + return accounts, nil +} + // Relationship hold information for relation-ship to the account. type Relationship struct { ID int64 `json:"id"`