mirror of
https://github.com/dstotijn/go-notion.git
synced 2025-06-15 00:05:04 +02:00
Add "list users" endpoint support
This commit is contained in:
7
user.go
7
user.go
@ -15,3 +15,10 @@ type User struct {
|
||||
Person *Person `json:"person"`
|
||||
Bot *Bot `json:"bot"`
|
||||
}
|
||||
|
||||
// ListUsersResponse contains results (users) and pagination data returned from a list request.
|
||||
type ListUsersResponse struct {
|
||||
Results []User `json:"results"`
|
||||
HasMore bool `json:"has_more"`
|
||||
NextCursor *string `json:"next_cursor"`
|
||||
}
|
||||
|
Reference in New Issue
Block a user