You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-1
Original file line number
Diff line number
Diff line change
@@ -201,7 +201,7 @@ result = cv.build_query(sort=sort_params).execute()
201
201
print("Sorted results, showing most valuable first:", result)
202
202
```
203
203
204
-
Note: You can combine `filter`, `aggregate`, and `sort`. See more examples of queries by setting up complex views in Notion, and then inspecting `cv.get("query")`
204
+
Note: You can combine `filter`, `aggregate`, and `sort`. See more examples of queries by setting up complex views in Notion, and then inspecting the full query: `cv.get("query2")`.
205
205
206
206
You can also see [more examples in action in the smoke test runner](https://github.com/jamalex/notion-py/blob/master/notion/smoke_test.py). Run it using:
207
207
@@ -226,6 +226,24 @@ page.locked = True
226
226
page.locked =False
227
227
```
228
228
229
+
## Example: Set the current user for multi-account user
230
+
231
+
```python
232
+
from notion.client import NotionClient
233
+
client = NotionClient(token_v2="<token_v2>")
234
+
235
+
# The initial current_user of a multi-account user may be an unwanted user
# _Quick plug: Learning Equality needs your support!_
230
248
231
249
If you'd like to support notion-py development, please consider [donating to my open-source nonprofit, Learning Equality](https://learningequality.org/donate/), since when I'm not working on notion-py, it probably means I'm heads-down fundraising for our global education work (bringing resources like Khan Academy to communities with no Internet). COVID has further amplified needs, with over a billion kids stuck at home, and over half of them without the connectivity they need for distance learning. You can now also [support our work via GitHub Sponsors](https://github.com/sponsors/learningequality)!
@@ -234,6 +252,7 @@ If you'd like to support notion-py development, please consider [donating to my
234
252
235
253
-[md2notion](https://github.com/Cobertos/md2notion): import Markdown files to Notion
236
254
-[notion-export-ics](https://github.com/evertheylen/notion-export-ics): Export Notion Databases to ICS calendar files
255
+
-[notion-tqdm](https://github.com/shunyooo/notion-tqdm): Progress Bar displayed in Notion like tqdm
0 commit comments