Add ID to Relationship, add follow unfollow test

This commit is contained in:
178inaba 2017-04-15 00:26:13 +09:00
parent aa81cb8318
commit 13dd483b47
2 changed files with 80 additions and 5 deletions

View file

@ -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.