commit
0750bedc85
10
mastodon.go
10
mastodon.go
|
@ -215,6 +215,16 @@ func (c *Client) GetAccount(id int) (*Account, error) {
|
||||||
return &account, nil
|
return &account, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetAccountCurrentUser return Account of current user.
|
||||||
|
func (c *Client) GetAccountCurrentUser() (*Account, error) {
|
||||||
|
var account Account
|
||||||
|
err := c.doAPI("GET", "/api/v1/accounts/verify_credentials", nil, &account)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return &account, nil
|
||||||
|
}
|
||||||
|
|
||||||
// GetAccountFollowers return followers list.
|
// GetAccountFollowers return followers list.
|
||||||
func (c *Client) GetAccountFollowers(id int64) ([]*Account, error) {
|
func (c *Client) GetAccountFollowers(id int64) ([]*Account, error) {
|
||||||
var accounts []*Account
|
var accounts []*Account
|
||||||
|
|
Loading…
Reference in New Issue