v5.8.0
This new release of the Nylas Python SDK brings a few changes.
Release Notes
Added
- Add support for getting the number of queried objects (count view)
Changed
- Improved usage of read only fields in models (fixes #212)
Fixed
- Fix Calendar availability functions not using the correct authentication method
Using New Features
Getting the number of queried objects (count view)
from nylas import APIClient
nylas = APIClient(
CLIENT_ID,
CLIENT_SECRET,
ACCESS_TOKEN
)
total_contacts = nylas.contacts.count()
# We also support filtering in conjunction with count
emails_from_support = nylas.messages.where(from_="[email protected]").count()