---
title: Google Workspace
icon: google
description: Set up the Google Workspace resource in Python.
---

## Dependencies

No additional dependencies - uses `aiohttp` (included).

For credential setup, see the [Google Workspace Setup](/home/setup/google) guide.

## Configuration

```python
import os
from mirage.resource.googledocs import GoogleDocsConfig, GoogleDocsResource

config = GoogleDocsConfig(
    client_id=os.environ["GOOGLE_CLIENT_ID"],
    client_secret=os.environ["GOOGLE_CLIENT_SECRET"],
    refresh_token=os.environ["GOOGLE_REFRESH_TOKEN"],
)
resource = GoogleDocsResource(config=config)
```
