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
To get the [expanded message view](https://www.nylas.com/docs/platform#expanded_message_view) that includes convenient header information, include `view='expanded'` in the where clause
@@ -191,7 +191,7 @@ The Folders and Labels API replaces the now deprecated Tags API. For Gmail accou
191
191
```python
192
192
# List labels
193
193
for label in client.labels:
194
-
printlabel.id, label.display_name
194
+
print(label.id, label.display_name)
195
195
196
196
# Create a label
197
197
label = client.labels.create()
@@ -219,7 +219,7 @@ Files can be uploaded via two interfaces. One is providing data directly, anothe
219
219
```python
220
220
# List files
221
221
forfilein client.files:
222
-
printfile.filename
222
+
print(file.filename)
223
223
224
224
# Create a new file with the stream interface
225
225
f =open('test.py', 'r')
@@ -259,15 +259,15 @@ draft.attach(myfile)
259
259
try:
260
260
draft.send()
261
261
except nylas.client.errors.ConnectionError as e:
262
-
print"Unable to connect to the SMTP server."
262
+
print("Unable to connect to the SMTP server.")
263
263
except nylas.client.errors.MessageRejectedError as e:
264
-
print"Message got rejected by the SMTP server!"
265
-
printe.message
264
+
print("Message got rejected by the SMTP server!")
265
+
print(e.message)
266
266
267
267
# Sometimes the API gives us the exact error message
268
268
# returned by the server. Display it since it can be
269
269
# helpful to know exactly why our message got rejected:
270
-
printe.server_error
270
+
print(e.server_error)
271
271
272
272
# Delete a draft
273
273
draft = client.drafts.create()
@@ -352,7 +352,7 @@ It's possible to query the status of all the user accounts registered to an app
352
352
353
353
```python
354
354
accounts = client.accounts
355
-
print[(acc.sync_status, acc.account_id, acc.trial, acc.trial_expires) for acc in accounts.all()]
355
+
print([(acc.sync_status, acc.account_id, acc.trial, acc.trial_expires) for acc in accounts.all()])
0 commit comments