Skip to content

v5.2.0

Compare
Choose a tag to compare
@mrashed-dev mrashed-dev released this 15 Jul 14:45
7bd1d24

New Features

  • Add support for Room Resource (#307)

Enhancements and Fixes

  • Fix issue where "302 Redirect" response codes were treated as errors (#306)
  • Fix issue where api value was overridden when calling message.expanded (#311)

Using New Features

Room Resource

Currently, the /resource endpoint only supports the GET operation without any extra functionality like filtering. To get a list of all room resource objects attached to your account, you can do the following:

#!/usr/bin/env ruby
require 'nylas'

# Initialize and connect to the Nylas client
nylas = Nylas::API.new(
  app_id: CLIENT_ID,
  app_secret: CLIENT_SECRET,
  access_token: ACCESS_TOKEN
)

resources = nylas.room_resources