v5.4.1
This patch release of the Nylas Python SDK comtains as a couple of enhancements.
Enhancements
- Improved support for Application Details
- Fix issue where keyword arguments calling
_update_resource
were not correctly resolving to URL params
Usage
To get application details:
from nylas import APIClient
nylas = APIClient(
CLIENT_ID,
CLIENT_SECRET
)
app_data = nylas.application_details()
To update application details:
from nylas import APIClient
nylas = APIClient(
CLIENT_ID,
CLIENT_SECRET
)
updated_app_data = nylas.update_application_details(
application_name="New Name",
icon_url="https://myurl.com/icon.png",
redirect_uris=["https://redirect.com"],
)
To delete an account:
from nylas import APIClient
nylas = APIClient(
CLIENT_ID,
CLIENT_SECRET
)
nylas.accounts.delete("{account_id}")