notion

package
v0.0.0-...-9a938bf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TitleType      = "title"
	MultiSelectTyp = "multi_select"
	CheckboxType   = "checkbox"
	TextType       = "text"
	ParagraphType  = "paragraph"
	Heading2Type   = "heading_2"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(cfg config.NotionConfig) (*Client, error)

func (*Client) CreateNewPageInDatabase

func (c *Client) CreateNewPageInDatabase(dbId string, pageData string) (err error)

type JsonAnswer

type JsonAnswer struct {
	Result  string `json:"result,omitempty"`
	Summary string `json:"summary,omitempty"`
	Name    string `json:"name,omitempty"`
}

type Text

type Text struct {
	Content string `json:"content,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL