Skip to content

Add ownedBy to History struct and Email,AccountStatus to User #68

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions content.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ type History struct {
Latest bool `json:"latest"`
CreatedBy User `json:"createdBy"`
CreatedDate string `json:"createdDate"`
OwnedBy User `json:"ownedBy"`
}

// LastUpdated contains information about the last update
Expand Down
12 changes: 7 additions & 5 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ import (

// User defines user informations
type User struct {
Type string `json:"type"`
Username string `json:"username"`
UserKey string `json:"userKey"`
AccountID string `json:"accountId"`
DisplayName string `json:"displayName"`
Type string `json:"type"`
Username string `json:"username"`
UserKey string `json:"userKey"`
AccountID string `json:"accountId"`
AccountStatus string `json:"accountStatus"`
DisplayName string `json:"displayName"`
Email string `json:"email"`
}

// getUserEndpoint creates the correct api endpoint by given id
Expand Down