Add ID to Relationship, add follow unfollow test
This commit is contained in:
parent
aa81cb8318
commit
13dd483b47
2 changed files with 80 additions and 5 deletions
11
accounts.go
11
accounts.go
|
@ -67,11 +67,12 @@ func (c *Client) GetAccountFollowing(id int64) ([]*Account, error) {
|
|||
|
||||
// Relationship hold information for relation-ship to the account.
|
||||
type Relationship struct {
|
||||
Following bool `json:"following"`
|
||||
FollowedBy bool `json:"followed_by"`
|
||||
Blocking bool `json:"blocking"`
|
||||
Muting bool `json:"muting"`
|
||||
Requested bool `json:"requested"`
|
||||
ID int64 `json:"id"`
|
||||
Following bool `json:"following"`
|
||||
FollowedBy bool `json:"followed_by"`
|
||||
Blocking bool `json:"blocking"`
|
||||
Muting bool `json:"muting"`
|
||||
Requested bool `json:"requested"`
|
||||
}
|
||||
|
||||
// AccountFollow follow the account.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue