Go written Notion SDK.
Note: The Notion API is in beta phase
It supports all APIs for Notion API (as for 2021-05-15).
- Blocks
- Databases
- Pages
- Search
- Users
Is this package needs update, please raise an issue or a PR.
Include this in your code as below:
import "github.com/ketion-so/go-notion/notion"
or using go get
$ go get -u github.com/ketion-so/go-notion
Initialize the client as below:
client := notion.NewClient("access token")
Here are some examples:
resp, _ := client.Databases.List(ctx)
fmt.Println(resp.Databases)
user, _ := client.Users.Get(ctx, "user ID")
This tool is released under Apache License 2.0. See details here