"This API is deprecated." When fetching a db with no id.
ashtonian opened this issue · comments
Ashton Kinslow commented
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.