Unofficial SDK of official notion API in Go

Overview

notion-go

Go Report Card Actions Status codecov

Go Reference GitHub go.mod Go version License

A go client for the Notion API

Description

This aims to be an unofficial Go version of the official SDK which is written in JavaScript.

Installation

go get -u github.com/mkfsn/notion-go

Usage

") // Retrieve block children c.Blocks().Children().List(context.Background(), notion.BlocksChildrenListParameters{...}) // Append block children c.Blocks().Children().Append(context.Background(), notion.BlocksChildrenAppendParameters{...}) // List databases c.Databases().List(context.Background(), notion.DatabasesListParameters{...}) // Query a database c.Databases().Query(context.Background(), notion.DatabasesQueryParameters{...}) // Retrieve a database c.Databases().Retrieve(context.Background(), notion.DatabasesRetrieveParameters{...}) // Create a page c.Pages().Create(context.Background(), notion.PagesCreateParameters{...}) // Retrieve a page c.Pages().Retreive(context.Background(), notion.PagesRetrieveParameters{...}) // Update page properties c.Pages().Update(context.Background(), notion.PagesUpdateParameters{...}) // List all users c.Users().List(context.Background(), notion.UsersListParameters{...}) // Retrieve a user c.Users().Retrieve(context.Background(), notion.UsersRetrieveParameters{...}) // Search c.Search(context.Background(), notion.SearchParameters{...}) ">
c := notion.New("")

// Retrieve block children
c.Blocks().Children().List(context.Background(), notion.BlocksChildrenListParameters{...})

// Append block children
c.Blocks().Children().Append(context.Background(), notion.BlocksChildrenAppendParameters{...})

// List databases
c.Databases().List(context.Background(), notion.DatabasesListParameters{...})

// Query a database
c.Databases().Query(context.Background(), notion.DatabasesQueryParameters{...})

// Retrieve a database
c.Databases().Retrieve(context.Background(), notion.DatabasesRetrieveParameters{...})

// Create a page
c.Pages().Create(context.Background(), notion.PagesCreateParameters{...})

// Retrieve a page
c.Pages().Retreive(context.Background(), notion.PagesRetrieveParameters{...})

// Update page properties
c.Pages().Update(context.Background(), notion.PagesUpdateParameters{...})

// List all users
c.Users().List(context.Background(), notion.UsersListParameters{...})

// Retrieve a user
c.Users().Retrieve(context.Background(), notion.UsersRetrieveParameters{...})

// Search
c.Search(context.Background(), notion.SearchParameters{...})

For more information, please see examples.

Supported Features

This client supports all endpoints in the Notion API.

You might also like...
A Go wrapper around the Notion API

go-notion A Go wrapper around the Notion API. | ⚠ This package is new and under active development. How to Use Install the package go get github.com/b

Twilight is an unofficial Golang SDK for Twilio APIs
Twilight is an unofficial Golang SDK for Twilio APIs

Twilight is an unofficial Golang SDK for Twilio APIs. Twilight was born as a result of my inability to spell Twilio correctly. I searched for a Twillio Golang client library and couldn’t find any, I decided to build one. Halfway through building this, I realized I had spelled Twilio as Twillio when searching for a client library on Github.

An easy-to-use unofficial SDK for Feishu and Lark Open Platform

go-lark go-lark is an easy-to-use unofficial SDK for Feishu and Lark Open Platform. go-lark implements messaging APIs, with full-fledged supports on b

Unofficial Fiber Handler for Sentry SDK

Fiber Handler for Sentry SDK Welcome to another "I can't find one, so I made one" episode of mine. Installation $ go get github.com/aldy505/sentry-fib

Unofficial SDK to access for Open Threat Exchange (OTX) in Go

gotx Unofficial SDK to access for Open Threat Exchange (OTX) API in Go. Usage package main import ( "context" "fmt" "os" "github.com/m-mizutani/

Unofficial Golang SDK for TON (The Open Network)

TonWeb Unofficial Golang SDK for TON (The Open Network) Installation go get github.com/neotoolkit/tonweb Usage package main import ( "fmt" "os" "

Go client for the YNAB API. Unofficial. It covers 100% of the resources made available by the YNAB API.

YNAB API Go Library This is an UNOFFICIAL Go client for the YNAB API. It covers 100% of the resources made available by the YNAB API. Installation go

The NVD API is an unofficial Go wrapper around the NVD API.

NVD API The NVD API is an unofficial Go wrapper around the NVD API. Supports: CVE CPE How to use The following shows how to basically use the wrapper

An unofficial API based on Hasura API Reference.

An unofficial API based on Hasura API Reference.

Releases(v0.2.5)
Owner
Pei-Ming Wu
Pei-Ming Wu
Amplitude unofficial client for Go, inspired in their official SDK for Node

Amplitude Golang SDK Amplitude unofficial client for Go, inspired in their official SDK for Node. For reference, visit HTTP API v2 documentation. Inst

Renato Almeida 6 Dec 31, 2022
Go written SDK for Notion.so API

go-notion Go written Notion SDK. Note: The Notion API is in beta phase Supported APIs It supports all APIs for Notion API (as for 2021-05-15). Blocks

Ketion.so 12 Dec 10, 2021
null 96 Nov 28, 2022
An API client for the Notion API implemented in Golang

An API client for the Notion API implemented in Golang

Anatoly Nosov 354 Dec 30, 2022
Unofficial Go SDK for GoPay Payments REST API

Unofficial Go SDK for GoPay Payments REST API Installation go get https://github.com/apparently-studio/gopay-go-api Basic usage client := gopay.NewCl

Apparently Studio 3 Nov 18, 2022
unofficial NBA Stats API SDK in Go

nba api go (nag) is an unofficial NBA Stats API in Go. it is very much a Go port of nba_api. endpoints alltimeleadersgrids assistleaders assisttracker

aprp 1 Sep 23, 2022
Unofficial getpocket.com API Golang SDK

GetPocket API Golang SDK https://getpocket.com/developer/ Example usage: package main import ( "context" "fmt" pocket "github.com/ernur-eskermes/p

Ernur Eskermes 0 Nov 28, 2021
Golang SDK for Dusupay payment gateway API (Unofficial)

Dusupay API SDK GO (Unofficial) Description Unofficial Dusupay payment gateway API Client for Go API documentation https://docs.dusupay.com/ Installat

Anton Kornilov 2 Sep 27, 2022
NotionGo is a Go client library for accessing the Notion API v1.

NotionGo (WIP) NotionGo is a Go client library for accessing the Notion API v1. Installation NotionGo is compatible with modern Go releases in module

Ben 4 May 22, 2021
Minimal go library for Notion's v1 API

go-notion (beta) go-notion is a minimal Go client library for Notion's v1 API. Check the usage or examples to see how to access Notion's v1 API. NB: N

Ayomide Oyekanmi 18 Dec 7, 2022