Merge pull request #8 from 178inaba/follow

Add ID to Relationship, add follow unfollow test
This commit is contained in:
mattn 2017-04-15 00:40:13 +09:00 committed by GitHub
commit 5d72d54344
2 changed files with 80 additions and 5 deletions

View file

@ -68,11 +68,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.