notion

package
v0.0.0-...-b401be1 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Configuration Configuration
	Logger        *slog.Logger
}

func (*Client) ArchivePage

func (c *Client) ArchivePage(id string) string

func (*Client) CreatePage

func (c *Client) CreatePage(name string) string

func (*Client) Inner

func (c *Client) Inner() *resty.Client

func (*Client) ListSubitems

func (c *Client) ListSubitems() []ListResult

func (*Client) SearchPage

func (c *Client) SearchPage(term string) string

type Configuration

type Configuration struct {
	ApiKey     string
	DatabaseId string
}

type ListResult

type ListResult struct {
	Id         string
	Properties ListResultProperties
}

type ListResultProperties

type ListResultProperties struct {
	Name             string
	ShortDescription string
}

Jump to

Keyboard shortcuts

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