Skip to content

Commit 6502925

Browse files
committed
doc: update usage
1 parent ffd0636 commit 6502925

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -24,37 +24,37 @@ go get -u github.com/mkfsn/notion-go
2424
c := notion.New("<NOTION_AUTH_TOKEN>")
2525

2626
// Retrieve block children
27-
c.Blocks().Children().List(...)
27+
c.Blocks().Children().List(context.Background(), notion.BlocksChildrenListParameters{...})
2828

2929
// Append block children
30-
c.Blocks().Children().Append(...)
30+
c.Blocks().Children().Append(context.Background(), notion.BlocksChildrenAppendParameters{...})
3131

3232
// List databases
33-
c.Databases().List(...)
33+
c.Databases().List(context.Background(), notion.DatabasesListParameters{...})
3434

3535
// Query a database
36-
c.Databases().Query(...)
36+
c.Databases().Query(context.Background(), notion.DatabasesQueryParameters{...})
3737

3838
// Retrieve a database
39-
c.Databases().Retrieve(...)
39+
c.Databases().Retrieve(context.Background(), notion.DatabasesRetrieveParameters{...})
4040

4141
// Create a page
42-
c.Pages().Create(...)
42+
c.Pages().Create(context.Background(), notion.PagesCreateParameters{...})
4343

4444
// Retrieve a page
45-
c.Pages().Retreive(...)
45+
c.Pages().Retreive(context.Background(), notion.PagesRetrieveParameters{...})
4646

4747
// Update page properties
48-
c.Pages().Update(...)
48+
c.Pages().Update(context.Background(), notion.PagesUpdateParameters{...})
4949

5050
// List all users
51-
c.Users().List(...)
51+
c.Users().List(context.Background(), notion.UsersListParameters{...})
5252

5353
// Retrieve a user
54-
c.Users().Retrieve(...)
54+
c.Users().Retrieve(context.Background(), notion.UsersRetrieveParameters{...})
5555

5656
// Search
57-
c.Search(...)
57+
c.Search(context.Background(), notion.SearchParameters{...})
5858
```
5959

6060
For more information, please see [examples](./examples).

0 commit comments

Comments
 (0)