1
0
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:
David Stotijn
2021-05-15 20:50:47 +02:00
parent 9b807dd473
commit 874858ea2a
4 changed files with 47 additions and 3 deletions

View File

@ -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"`
}