2021-05-13 22:11:32 +02:00
|
|
|
package notion
|
|
|
|
|
|
|
|
type Person struct {
|
|
|
|
Email string `json:"email"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type Bot struct{}
|
|
|
|
|
|
|
|
type User struct {
|
|
|
|
ID string `json:"id"`
|
|
|
|
Type string `json:"type"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
AvatarURL *string `json:"avatar_url"`
|
|
|
|
|
|
|
|
Person *Person `json:"person"`
|
|
|
|
Bot *Bot `json:"bot"`
|
|
|
|
}
|
2021-05-15 20:50:47 +02:00
|
|
|
|
|
|
|
// 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"`
|
|
|
|
}
|