Skip to content

Commit

Permalink
Add update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jomei committed May 26, 2021
1 parent 08138df commit 594a960
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
```

0 comments on commit 594a960

Please sign in to comment.