Skip to content

Commit c3e21c0

Browse files
committed
Change example for connecting to an account
The old example only worked for the open source sync engine API case. In this case, email address and provider are not available on this object. We should change this but in the meantime, we'll give an example that works.
1 parent 4630214 commit c3e21c0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,10 @@ implementing the auth flow.
7575
```python
7676
client = APIClient(APP_ID, APP_SECRET, token)
7777

78-
# Print out the email address and provider (Gmail, Exchange)
79-
print client.account.email_address
80-
print client.account.provider
78+
# Print out the account_id
79+
account = client.accounts.first()
80+
print account.as_json()
81+
print account.as_json()['account_id']
8182
```
8283

8384

0 commit comments

Comments
 (0)