From 594a9606a645ce2badb201523377693d09c677ca Mon Sep 17 00:00:00 2001 From: Anatoy Nosov Date: Wed, 26 May 2021 15:22:58 +0700 Subject: [PATCH] Add update readme --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index b92b30d..d427207 100644 --- a/README.md +++ b/README.md @@ -9,3 +9,31 @@ An API client for the [Notion API](https://developers.notion.com/) implemented i - [x] Users - [x] Search - [ ] Tests and Examples + +# Installation + +``` +$ go get github.com/jomei/notionapi +``` + +# Getting started +Follow Notion’s [getting started guide](https://developers.notion.com/docs/getting-started) to obtain an Integration Token. + +## Example + +Make a new `Client` + +```go +import "github.com/jomei/notionapi" + + +client := notionapi.NewClient("your-integration-token") +``` +Then, use client's methods to retrieve or update your content + +```go +page, err := client.PageRetrieve(context.Background(), "your-page-id") +if err != nil { + // do something +} +```