jomei / notionapi

A Notion API SDK, written in Golang

Home Page:https://pkg.go.dev/github.com/jomei/notionapi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"This API is deprecated." When fetching a db with no id.

ashtonian opened this issue · comments

When fetching a Database with an empty ID I get a misleading error "This API is deprecated.".

	client := notionapi.NewClient(notionapi.Token("mytoken"))

	db, err := client.Database.Get(context.TODO(), notionapi.DatabaseID(""))
	if err != nil {
		panic(err.Error())
	}
panic: This API is deprecated.