1
0
mirror of https://github.com/dstotijn/go-notion.git synced 2025-06-08 23:46:12 +02:00

26 Commits

Author SHA1 Message Date
David Stotijn
57876f99e3 Rename UpdatePageProps to UpdatePage 2021-12-22 14:33:58 +01:00
David Stotijn
664a94d62b Add "Retrieve a page property item" endpoint 2021-12-22 14:04:22 +01:00
David Stotijn
4c24b26ca4 Add "Retrieve your token's bot user" endpoint 2021-12-22 12:01:52 +01:00
David Stotijn
49ec529a16 Add "Delete block" endpoint 2021-12-22 11:12:11 +01:00
David Stotijn
2bfbe21a0d Fix response format of "Append Block Children" endpoint
See: https://developers.notion.com/changelog/notion-version-2021-08-16#append-block-children-returns-a-list-of-blocks
2021-12-20 17:01:06 +01:00
David Stotijn
f62677ef09 Add "Update database" endpoint 2021-12-20 11:11:03 +01:00
David Stotijn
2ebac2e1b2 Add "Update block" endpoint 2021-12-18 14:19:51 +01:00
David Stotijn
a45f658ecc Add callout block type 2021-12-13 11:42:03 +01:00
Nozomi Morimoto
135ef8c421
Support retrieve a block (#19)
* support retrieve block by id

* Update client.go

Co-authored-by: David Stotijn <dstotijn@gmail.com>

* Update client_test.go

Co-authored-by: David Stotijn <dstotijn@gmail.com>

* Update client.go

Co-authored-by: David Stotijn <dstotijn@gmail.com>

* fix find block's client test

Co-authored-by: David Stotijn <dstotijn@gmail.com>
2021-12-09 16:44:31 +01:00
David Stotijn
5e7e8ed54c Add "create database" endpoint 2021-07-20 22:50:53 +02:00
David Stotijn
d087d4b000 Add tests for "query database" endpoint 2021-05-18 21:19:03 +02:00
David Stotijn
843e655c11 Add search endpoint support 2021-05-15 23:06:37 +02:00
David Stotijn
874858ea2a Add "list users" endpoint support 2021-05-15 20:50:47 +02:00
David Stotijn
9b807dd473 Add "retrieve a user" endpoint support 2021-05-15 20:30:07 +02:00
David Stotijn
019301c714 Remove stray code 2021-05-15 20:17:21 +02:00
David Stotijn
205f94cc89 Add "append block children" endpoint support 2021-05-15 20:16:26 +02:00
David Stotijn
cd696c1624 Add "retrieve block children" endpoint support 2021-05-15 19:04:57 +02:00
David Stotijn
304d7d2d8c Remove stray log call 2021-05-15 18:06:34 +02:00
David Stotijn
e32f7422cd Add "update page properties" endpoint support 2021-05-15 18:06:11 +02:00
David Stotijn
b2af8b7d0b Add "create a page" endpoint 2021-05-15 13:42:01 +02:00
David Stotijn
14a12ab965 Fix error message when newRequest returns err 2021-05-15 00:20:11 +02:00
David Stotijn
807f08dace Add endpoint for getting page by ID 2021-05-15 00:19:30 +02:00
David Stotijn
4726db0bf2 Add context.Context arg for Client methods, move methods to client.go 2021-05-15 00:02:08 +02:00
David Stotijn
0c1e15e0a7 Add "query database" endpoint 2021-05-14 23:48:30 +02:00
David Stotijn
56b18f60ee Add User-Agent HTTP req header 2021-05-14 18:25:44 +02:00
David Stotijn
e9e9dca708 Initial commit 2021-05-13 22:11:32 +02:00