Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 371 Bytes

File metadata and controls

16 lines (12 loc) · 371 Bytes

Retrieve a database

=== "Async"

```python
async def main():
    async_api = AsyncNotionAPI(access_token='<NOTION_TOKEN>')
    database = await async_api.get_database(database_id='<DATABASE_ID>')
```

=== "Sync"

```python
api = NotionAPI(access_token='<NOTION_TOKEN>')
database = api.get_database(database_id='<DATABASE_ID>')
```