# Packages
No description provided by the author
# Functions
NewClient returns the API client for Notion.
WithHTTPClient overrides the default http.Client.
WithVersion overrides the Notion API version to communicate.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
Annotations object represents Notion rich text annotationgo:generate gomodifytags -file $GOFILE -struct Annotations -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct Annotations -add-tags json,mapstructure -w -transform snakecase.
Bot object represents Notion bot account.
BulletedListItemBlock object represents the retrieve block children.go:generate gomodifytags -file $GOFILE -struct BulletedListItemBlock -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct BulletedListItemBlock -add-tags json,mapstructure -w -transform snakecase.
CheckboxFilter filters object properties.
CheckboxProperty object represents Notion CheckboxProperty Property.go:generate gomodifytags --file $GOFILE --struct CheckboxProperty -add-tags json,mapstructure -w -transform snakecase.
ChildPageBlock object represents the retrieve block children.go:generate gomodifytags -file $GOFILE -struct ChildPageBlock -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct ChildPageBlock -add-tags json,mapstructure -w -transform snakecase.
Client represents the API client for Notion.
CreatedByProperty object represents Notion created by Property.go:generate gomodifytags --file $GOFILE --struct CreatedByProperty -add-tags json,mapstructure -w -transform snakecase.
CreatedTimeProperty object represents Notion created time Property.go:generate gomodifytags --file $GOFILE --struct CreatedTimeProperty -add-tags json,mapstructure -w -transform snakecase.
CreatePageRequest object represents the retrieve page.go:generate gomodifytags --file $GOFILE --struct CreatePageRequest -add-tags json,mapstructure -w -transform snakecase.
Database object represents Notion Database.
DatabaseParent object represents the retrieve parent.go:generate gomodifytags --file $GOFILE --struct DatabaseParent -add-tags json,mapstructure -w -transform snakecase.
DatabaseQuery is a query for database.
DatabaseTitleProperty object represents Notion title Property.go:generate gomodifytags --file $GOFILE --struct DatabaseTitleProperty -add-tags json,mapstructure -w -transform snakecase.
DataFilter filters data properties.
Date represents data object's date.
DateProperty object represents Notion date Property.go:generate gomodifytags --file $GOFILE --struct DateProperty -add-tags json,mapstructure -w -transform snakecase.
EmailProperty object represents Notion emailProperty Property.go:generate gomodifytags --file $GOFILE --struct EmailProperty -add-tags json,mapstructure -w -transform snakecase.
EquationObject object represents Notion rich text objectgo:generate gomodifytags -file $GOFILE -struct EquationObject -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct EquationObject -add-tags json,mapstructure -w -transform snakecase.
Error represents error response from Notiongo:generate gomodifytags -file $GOFILE -struct Error -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct Error -add-tags json,mapstructure -w -transform snakecase.
FilesFilter filters select properties.
FilesProperty object represents Notion file Property.go:generate gomodifytags --file $GOFILE --struct FilesProperty -add-tags json,mapstructure -w -transform snakecase.
Filter object represents Notion User.go:generate gomodifytags -file $GOFILE -struct Filter -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct Filter -add-tags json,mapstructure -w -transform snakecase.
FormulaFilter filters select properties.
FormulaProperty object represents Notion formula Property.go:generate gomodifytags --file $GOFILE --struct FormulaProperty -add-tags json,mapstructure -w -transform snakecase.
HeadingOneBlock object represents the retrieve block children.go:generate gomodifytags -file $GOFILE -struct HeadingOneBlock -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct HeadingOneBlock -add-tags json,mapstructure -w -transform snakecase.
HeadingThreeBlock object represents the retrieve block children.go:generate gomodifytags -file $GOFILE -struct HeadingThreeBlock -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct HeadingThreeBlock -add-tags json,mapstructure -w -transform snakecase.
HeadingTwoBlock object represents the retrieve block children.go:generate gomodifytags -file $GOFILE -struct HeadingTwoBlock -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct HeadingTwoBlock -add-tags json,mapstructure -w -transform snakecase.
LastEditedByProperty object represents Notion last edited by Property.go:generate gomodifytags --file $GOFILE --struct LastEditedByProperty -add-tags json,mapstructure -w -transform snakecase.
LastEditedTimeProperty object represents Notion last edited time Property.go:generate gomodifytags --file $GOFILE --struct LastEditedTimeProperty -add-tags json,mapstructure -w -transform snakecase.
LinkObject object represents Notion rich text objectgo:generate gomodifytags -file $GOFILE -struct LinkObject -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct LinkObject -add-tags json,mapstructure -w -transform snakecase.
ListBlockChildrenResult object represents the retrieve block children.go:generate gomodifytags -file $GOFILE -struct ListBlockChildrenResult -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct ListBlockChildrenResult -add-tags json,mapstructure -w -transform snakecase.
ListDatabase object represents Notion ListDatabase.
ListDatabaseResponse represents the response from the list User API
go:generate gomodifytags -file $GOFILE -struct ListDatabaseResponse -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct ListDatabaseResponse -add-tags json,mapstructure -w -transform snakecase.
ListUserResponse represents the response from the list User API
go:generate gomodifytags -file $GOFILE -struct ListUserResponse -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct ListUserResponse -add-tags json,mapstructure -w -transform snakecase.
MentionObject object represents Notion rich text objectgo:generate gomodifytags -file $GOFILE -struct MentionObject -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct MentionObject -add-tags json,mapstructure -w -transform snakecase.
MultiSelectFilter filters select properties.
MultiSelectOption object represents Notion select Property.go:generate gomodifytags --file $GOFILE --struct MultiSelectOption -add-tags json,mapstructure -w -transform snakecase.
MultiSelectProperty object represents Notion multi select Property.go:generate gomodifytags --file $GOFILE --struct MultiSelectProperty -add-tags json,mapstructure -w -transform snakecase.
NumberedListItemBlock object represents the retrieve block children.go:generate gomodifytags -file $GOFILE -struct NumberedListItemBlock -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct NumberedListItemBlock -add-tags json,mapstructure -w -transform snakecase.
NumberFilter filters number properties.
NumberListItemBlock object represents the retrieve block children.go:generate gomodifytags -file $GOFILE -struct NumberListItemBlock -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct NumberListItemBlock -add-tags json,mapstructure -w -transform snakecase.
NumberProperty object represents Notion number Property.go:generate gomodifytags --file $GOFILE --struct NumberProperty -add-tags json,mapstructure -w -transform snakecase.
Page object represents the retrieve page.
PageParent object represents the retrieve parent.go:generate gomodifytags -file $GOFILE -struct PageParent -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct PageParent -add-tags json,mapstructure -w -transform snakecase.
PageTitleProperty object represents Notion title Property.go:generate gomodifytags --file $GOFILE --struct PageTitleProperty -add-tags json,mapstructure -w -transform snakecase.
ParagraphBlock object represents the retrieve block children.go:generate gomodifytags -file $GOFILE -struct ParagraphBlock -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct ParagraphBlock -add-tags json,mapstructure -w -transform snakecase.
People object represents Notion human account.
PeopleFilter filters select properties.
PersonProperty object represents Notion people Property.go:generate gomodifytags --file $GOFILE --struct PersonProperty -add-tags json,mapstructure -w -transform snakecase.
PhoneNumberProperty object represents Notion phone number Property.go:generate gomodifytags --file $GOFILE --struct PhoneNumberProperty -add-tags json,mapstructure -w -transform snakecase.
QueryDatabaseResults object represents Notion Search paramsgo:generate gomodifytags -file $GOFILE -struct QueryDatabaseResults -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct QueryDatabaseResults -add-tags json,mapstructure -w -transform snakecase.
RateLimit represents the rate limit info for the API.
Relation object represents Notion relation.go:generate gomodifytags --file $GOFILE --struct Relation -add-tags json,mapstructure -w -transform snakecase.
RelationFilter filters select properties.
RelationProperty object represents Notion relation Property.go:generate gomodifytags --file $GOFILE --struct RelationProperty -add-tags json,mapstructure -w -transform snakecase.
Rollup object represents Notion rollup.go:generate gomodifytags --file $GOFILE --struct Rollup -add-tags json,mapstructure -w -transform snakecase.
RollupProperty object represents Notion rollup Property.go:generate gomodifytags --file $GOFILE --struct RollupProperty -add-tags json,mapstructure -w -transform snakecase.
SearchRequest object represents Notion Search paramsgo:generate gomodifytags -file $GOFILE -struct SearchRequest -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct SearchRequest -add-tags json,mapstructure -w -transform snakecase.
SearchResults object represents Notion Search paramsgo:generate gomodifytags -file $GOFILE -struct SearchResults -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct SearchResults -add-tags json,mapstructure -w -transform snakecase.
SelectFilter filters select properties.
SelectOption object represents Notion select Property.go:generate gomodifytags --file $GOFILE --struct SelectOption -add-tags json,mapstructure -w -transform snakecase.
SelectProperty object represents Notion select Property.go:generate gomodifytags --file $GOFILE --struct SelectProperty -add-tags json,mapstructure -w -transform snakecase.
Sort object represents Notion User.go:generate gomodifytags -file $GOFILE -struct Sort -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct Sort -add-tags json,mapstructure -w -transform snakecase.
Text represents text object's text content.
TextFilter filters text properties.go:generate gomodifytags --file $GOFILE --struct database -add-tags json,mapstructure -w -transform snakecase -add-options json=omitempty.
TextObject object represents Notion rich text objectgo:generate gomodifytags -file $GOFILE -struct TextObject -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct TextObject -add-tags json,mapstructure -w -transform snakecase.
TextProperty object represents Notion rich text Property.go:generate gomodifytags --file $GOFILE --struct TextProperty -add-tags json,mapstructure -w -transform snakecase.
ToDoBlock object represents the retrieve block children.go:generate gomodifytags -file $GOFILE -struct ToDoBlock -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct ToDoBlock -add-tags json,mapstructure -w -transform snakecase.
ToggleBlock object represents the retrieve block children.go:generate gomodifytags -file $GOFILE -struct ToggleBlock -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct ToggleBlock -add-tags json,mapstructure -w -transform snakecase.
UpdatePageRequest object represents the update request.
URLProperty object represents Notion text Property.go:generate gomodifytags --file $GOFILE --struct URLProperty -add-tags json,mapstructure -w -transform snakecase.
User object represents Notion User.
WorkspaceParent object represents the retrieve parent.go:generate gomodifytags -file $GOFILE -struct WorkspaceParent -clear-tags -wgo:generate gomodifytags --file $GOFILE --struct WorkspaceParent -add-tags json,mapstructure -w -transform snakecase.
# Interfaces
Block represents a block.
No description provided by the author
Parent represens the interface for all parents of the page.
Property represents database properties.
RicchText is descibed in API doc: https://developers.notion.com/reference/rich-text.
# Type aliases
BlocksService handles communication to Notion Blocks API.
ClientOption represents options to configure this Notion API client.
Color is type for text and background colors.
CompoundFilterType is a type for compound filters.
DatabasesService handles communication to Notion Databases API.
Direction is a type to specify how to sort the search results.
FilterPropertyValue is a type for what value to filter.
FiterValue is a type for specifying what to filter.
MentionObjectType is for types of mentions.
PagesService handles communication to Notion Pages API.
RichTextType is type of this rich text object.
SearchService handles communication to Notion Search API.
UsersService handles communication to Notion Users API.