1
0
mirror of https://github.com/dstotijn/go-notion.git synced 2025-06-15 00:05:04 +02:00

Add URL field to Page type

Ref: https://developers.notion.com/changelog/page-objects-now-return-url
This commit is contained in:
David Stotijn
2021-07-20 20:57:27 +02:00
parent 597978fa0d
commit ccd1bed559
2 changed files with 9 additions and 0 deletions

View File

@ -16,6 +16,7 @@ type Page struct {
LastEditedTime time.Time `json:"last_edited_time"`
Parent Parent `json:"parent"`
Archived bool `json:"archived"`
URL string `json:"url"`
// Properties differ between parent type.
// See the `UnmarshalJSON` method.