Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockType ¶
type BlockType string
const ( ParagraphBlockType BlockType = "paragraph" HeadingOneBlockType BlockType = "heading_1" HeadingTwoBlockType BlockType = "heading_2" HeadingThreeBlockType BlockType = "heading_3" BulletedListItemBlockType BlockType = "bulleted_list_item" NumberListItemBlockType BlockType = "numbered_list_item" ToggleBlockType BlockType = "toggle" ToDoBlockType BlockType = "to_do" ChildPageBlockType BlockType = "child_page" UnsupportedBlockType BlockType = "unsupported" )
type ErrorCode ¶ added in v0.0.5
type ErrorCode string
ErrorCode represents the Notion API errors. See details: https://developers.notion.com/reference/errors
const ( ErrInvalidJson ErrorCode = "invalid_json" ErrInvalidRequestURL ErrorCode = "invalid_request_url" ErrInvalidRequest ErrorCode = "Invalid_request" ErrValidationErrore ErrorCode = "validation_error" ErrUnautho ErrorCode = "invalid_json" ErrRestrictedResource ErrorCode = "restricted_resource" ErrObjectNotFound ErrorCode = "object_not_found" ErrConflictError ErrorCode = "invalid_json" ErrRateLimited ErrorCode = "conflict_error" ErrInternalServer ErrorCode = "rate_limited" )
type ParentType ¶ added in v0.0.5
type ParentType string
ParentType is a type for Parents.
const ( DatabaseParentType ParentType = "database_id" PageParentType ParentType = "page_id" WorkspaceParentType ParentType = "workspace" )
type PropertyType ¶ added in v0.0.5
type PropertyType string
PropertyType is type for specifying the property type.
const ( TextPropertyType PropertyType = "text" TitlePropertyType PropertyType = "title" NumberPropertyType PropertyType = "number" SelectPropertyType PropertyType = "select" MultiSelectPropertyType PropertyType = "multi_select" DatePropertyType PropertyType = "date" PeoplePropertyType PropertyType = "people" FilesPropertyType PropertyType = "files" CheckboxPropertyType PropertyType = "checkbox" URLPropertyType PropertyType = "url" EmailPropertyType PropertyType = "email" PhoneNumberPropertyType PropertyType = "phone_number" FormulaPropertyType PropertyType = "formula" RelationPropertyType PropertyType = "relation" RollupPropertyType PropertyType = "rollup" CreatedTimePropertyType PropertyType = "created_time" CreatedByPropertyType PropertyType = "created_by" LastEditedTimePropertyType PropertyType = "last_edited_time" LastEditedByPropertyType PropertyType = "last_edited_by" )
Click to show internal directories.
Click to hide internal directories.