This is a Golang implementation of an API client for the Notion API.
It supports all APIs of the Notion API version 2022-06-28
.
go get github.com/jomei/notionapi
First, please follow the Getting Started Guide to obtain an integration token.
Import this library and initialize the API client using the obtained integration token.
import "github.com/jomei/notionapi"
client := notionapi.NewClient("your_integration_token")
You can use the methods of the initialized client to call the Notion API. Here is an example of how to retrieve a page:
page, err := client.Page.Get(context.Background(), "your_page_id")
if err != nil {
// Handle the error
}