api

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NumberedListCounter int

Functions

func AddToStack

func AddToStack(client *notionapi.Client, pageID string) error

func Block2String

func Block2String(c *notion.Client, b notion.Block, level int) (string, error)

func BulletedListItem2String

func BulletedListItem2String(b notion.Block, level int) string

func ChildPage2String

func ChildPage2String(b notion.Block, level int) string

func Code2String

func Code2String(b notion.Block, level int) string

func Column2String

func Column2String(c *notion.Client, b notion.Block, level int) (string, error)

func ColumnList2String

func ColumnList2String(c *notion.Client, b notion.Block, level int) (string, error)

func CreatePage

func CreatePage(client *notionapi.Client, parentID string, title, icon string) (string, error)

func Divider2String

func Divider2String(b notion.Block, level int) string

func Equation2String

func Equation2String(b notion.Block, level int) string

func GetStack

func GetStack(client *notion.Client, pageID string) (notion.Block, error)

func GetStackEntries

func GetStackEntries(client *notion.Client, pageID string) (notion.Blocks, error)

func Heading2String

func Heading2String(b interface{}, level int) string

func Image2String

func Image2String(b notion.Block, level int) string

func InitAPI

func InitAPI() (*notionapi.Client, string, error)

func ModifyStack

func ModifyStack(client *notionapi.Client, pageID string) error

func NewClient

func NewClient(token string) *notionapi.Client

func NumberedListItem2String

func NumberedListItem2String(b notion.Block, level int) string

func PageTitle2String

func PageTitle2String(page *notion.Page) string

func Paragraph2String

func Paragraph2String(b notion.Block, level int) string

func ParseStack

func ParseStack(client *notion.Client, pageID string) (*[]string, *[]string, *[]bool, error)

func ParseStackFromBlocks

func ParseStackFromBlocks(client *notion.Client, blocks notion.Blocks, pageID string) (*[]string, *[]string, *[]bool, error)

func RichText2String

func RichText2String(rts []notion.RichText, prefix string, level int, style ...utils.TextStyle) string

func RmFromStack

func RmFromStack(client *notionapi.Client, pageID string) error

func ShowBlock

func ShowBlock(c *notion.Client, b notion.Block, level int) error

func ShowBulletedListItem

func ShowBulletedListItem(b notion.Block, level int) error

func ShowChildPage

func ShowChildPage(b notion.Block, level int) error

func ShowCode

func ShowCode(b notion.Block, level int) error

func ShowColumn

func ShowColumn(c *notion.Client, b notion.Block, level int) error

func ShowColumnList

func ShowColumnList(c *notion.Client, b notion.Block, level int) error

func ShowDivider

func ShowDivider(b notion.Block, level int) error

func ShowEquation

func ShowEquation(b notion.Block, level int) error

func ShowHeading

func ShowHeading(b interface{}, level int) error

func ShowImage

func ShowImage(b notion.Block, level int) error

func ShowNumberedListItem

func ShowNumberedListItem(b notion.Block, level int) error

func ShowPage

func ShowPage(client *notion.Client, pageID string) error

func ShowPageTitle

func ShowPageTitle(page *notion.Page) error

func ShowParagraph

func ShowParagraph(b notion.Block, level int) error

func ShowRichText

func ShowRichText(rts []notion.RichText, prefix string, level int, style ...utils.TextStyle) error

func ShowTitle

func ShowTitle(title *notion.TitleProperty) error

func ShowToDo

func ShowToDo(b notion.Block, level int) error

func ShowToggle

func ShowToggle(c *notion.Client, b notion.Block, open bool, level int) error

func Title2String

func Title2String(title *notion.TitleProperty) string

func ToDo2String

func ToDo2String(b notion.Block, level int) string

func Toggle2String

func Toggle2String(c *notion.Client, b notion.Block, open bool, level int) (string, error)

func ToggleStack

func ToggleStack(client *notionapi.Client, pageID string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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