notion

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	Object   string   `json:"object"`
	Type     string   `json:"type"`
	Bookmark Bookmark `json:"bookmark"`
}

type Bookmark

type Bookmark struct {
	Caption []interface{} `json:"caption"` // Assuming the "caption" field can have different types
	URL     string        `json:"url"`
}

type Client

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

Client represents a Notion client.

func NewClient

func NewClient(token, pageID string) *Client

NewClient returns a new Notion client.

func (*Client) AddEntry

func (c *Client) AddEntry(entryURL string, entryTitle string) error

type Data

type Data struct {
	Children []Block `json:"children"`
}

Jump to

Keyboard shortcuts

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