Skip to content

tempor1s/notiongo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NotionGo (WIP)

GoDoc Test Status Test Coverage

NotionGo is a Go client library for accessing the Notion API v1.

Installation

NotionGo is compatible with modern Go releases in module mode, with Go installed:

go get github.com/tempor1s/notiongo/

will resolve and add the package to the current development module, along with its dependencies.

Alternatively the same can be achieved if you use import in a package:

import "github.com/tempor1s/notiongo/notion"

Usage

import "github.com/tempor1s/notiongo/v1/notion"	// with go modules enabled (GO111MODULE=on or outside GOPATH)
import "github.com/tempor1s/notiongo/notion" // with go modules disabled

Construct a new Notion client, then use the various services on the client to access different parts of the Notion API. For example:

client := notion.NewClient(nil)

// Retrieves a Page object using the ID specified.
page, err := client.page(id)

Integration Tests

You can run integration tests from the test directory. See the integration tests README.

Contributing

I would like to cover the entire GitHub API and contributions are of course always welcome. The calling pattern is pretty well established, so adding new methods is relatively straightforward. See CONTRIBUTING.md for details.

License

Library distributed under the Apache-2.0 license found in the LICENSE file.

Releases

No releases published

Packages

No packages published

Languages