Using asyncio for notion.pages.create requests #206
Answered
by
ramnes
JonathanBonnaud
asked this question in
Q&A
-
Hello, Is it possible to use Thanks :) |
Beta Was this translation helpful? Give feedback.
Answered by
ramnes
Sep 13, 2023
Replies: 1 comment
-
Hey there! Yes, all methods are available as coroutines when you use For example: import asyncio
import os
from pprint import pprint
from notion_client import AsyncClient
async def main():
notion = AsyncClient(auth=os.environ["NOTION_TOKEN"])
users = await notion.users.list()
pprint(users)
asyncio.run(main()) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JonathanBonnaud
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there!
Yes, all methods are available as coroutines when you use
AsyncClient
, as written in the README. :)For example: