Documentation ¶
Index ¶
Constants ¶
View Source
const (
ID = "notion"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListResult ¶
type ListResult struct { Object string `json:"object"` Results json.RawMessage `json:"results"` NextCursor interface{} `json:"next_cursor"` HasMore bool `json:"has_more"` Type string `json:"type"` PageOrDatabase interface{} `json:"page_or_database"` }
type Page ¶
type Page struct { Object string `json:"object"` ID string `json:"id"` CreatedTime time.Time `json:"created_time"` LastEditedTime time.Time `json:"last_edited_time"` CreatedBy struct { Object string `json:"object"` ID string `json:"id"` } `json:"created_by"` LastEditedBy struct { Object string `json:"object"` ID string `json:"id"` } `json:"last_edited_by"` Cover struct { Type string `json:"type"` External struct { URL string `json:"url"` } `json:"external"` } `json:"cover"` Icon struct { Type string `json:"type"` Emoji string `json:"emoji"` } `json:"icon"` Parent struct { Type string `json:"type"` DatabaseID string `json:"database_id"` } `json:"parent"` Archived bool `json:"archived"` Properties struct { StoreAvailability struct { ID string `json:"id"` Type string `json:"type"` MultiSelect []interface{} `json:"multi_select"` } `json:"Store availability"` FoodGroup struct { ID string `json:"id"` Type string `json:"type"` Select struct { ID string `json:"id"` Name string `json:"name"` Color string `json:"color"` } `json:"select"` } `json:"Food group"` Price struct { ID string `json:"id"` Type string `json:"type"` Number interface{} `json:"number"` } `json:"Price"` ResponsiblePerson struct { ID string `json:"id"` Type string `json:"type"` People []interface{} `json:"people"` } `json:"Responsible Person"` LastOrdered struct { ID string `json:"id"` Type string `json:"type"` Date interface{} `json:"date"` } `json:"Last ordered"` CostOfNextTrip struct { ID string `json:"id"` Type string `json:"type"` Formula struct { Type string `json:"type"` Number interface{} `json:"number"` } `json:"formula"` } `json:"Cost of next trip"` Recipes struct { ID string `json:"id"` Type string `json:"type"` Relation []interface{} `json:"relation"` } `json:"Recipes"` Description struct { ID string `json:"id"` Type string `json:"type"` RichText []struct { Type string `json:"type"` Text struct { Content string `json:"content"` Link interface{} `json:"link"` } `json:"text"` Annotations struct { Bold bool `json:"bold"` Italic bool `json:"italic"` Strikethrough bool `json:"strikethrough"` Underline bool `json:"underline"` Code bool `json:"code"` Color string `json:"color"` } `json:"annotations"` PlainText string `json:"plain_text"` Href interface{} `json:"href"` } `json:"rich_text"` } `json:"Description"` InStock struct { ID string `json:"id"` Type string `json:"type"` Checkbox bool `json:"checkbox"` } `json:"In stock"` NumberOfMeals struct { ID string `json:"id"` Type string `json:"type"` Rollup struct { Type string `json:"type"` Number int `json:"number"` Function string `json:"function"` } `json:"rollup"` } `json:"Number of meals"` Photo struct { ID string `json:"id"` Type string `json:"type"` URL interface{} `json:"url"` } `json:"Photo"` Name struct { ID string `json:"id"` Type string `json:"type"` Title []struct { Type string `json:"type"` Text struct { Content string `json:"content"` Link interface{} `json:"link"` } `json:"text"` Annotations struct { Bold bool `json:"bold"` Italic bool `json:"italic"` Strikethrough bool `json:"strikethrough"` Underline bool `json:"underline"` Code bool `json:"code"` Color string `json:"color"` } `json:"annotations"` PlainText string `json:"plain_text"` Href interface{} `json:"href"` } `json:"title"` } `json:"Name"` } `json:"properties"` URL string `json:"url"` }
Click to show internal directories.
Click to hide internal directories.