Add ID to the Relationship structure
authorMikael Berthe <mikael@lilotux.net>
Mon, 17 Apr 2017 15:22:45 +0200
changeset 133 0085bcfc1131
parent 132 639bbcddb4fe
child 134 588edbc9e14b
Add ID to the Relationship structure Missing from the API documentation.)
types.go
--- a/types.go	Mon Apr 17 12:15:50 2017 +0200
+++ b/types.go	Mon Apr 17 15:22:45 2017 +0200
@@ -107,6 +107,7 @@
 
 // Relationship represents a Mastodon relationship entity
 type Relationship struct {
+	ID         int  `json:"id"`
 	Following  bool `json:"following"`
 	FollowedBy bool `json:"followed_by"`
 	Blocking   bool `json:"blocking"`