Skip to content

Commit

Permalink
Add 'included' field to user's response
Browse files Browse the repository at this point in the history
  • Loading branch information
mxpv committed Aug 20, 2017
1 parent 275bc99 commit 94a2b4e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ type User struct {

// UserResponse wraps Patreon's fetch user API response
type UserResponse struct {
Data User `json:"data"`
Links struct {
Data User `json:"data"`
Included Includes `json:"included"`
Links struct {
Self string `json:"self"`
} `json:"links"`
}

0 comments on commit 94a2b4e

Please sign in to comment.