Skip to content

[58040] Added support for event metadata#227

Merged
mrashed-dev merged 1 commit intomainfrom
mostafarashed/ch58040/node-sdk-add-support-for-event-metadata-wix
May 14, 2021
Merged

[58040] Added support for event metadata#227
mrashed-dev merged 1 commit intomainfrom
mostafarashed/ch58040/node-sdk-add-support-for-event-metadata-wix

Conversation

@mrashed-dev
Copy link
Copy Markdown
Contributor

@mrashed-dev mrashed-dev commented May 14, 2021

Description

The Nylas Calendar API has a new beta feature of adding a new metadata field to calendar events. This PR makes the feature available via the Nylas Node.js SDK.

Usage

Adding a metadata object is simple. Add the object under the metadata key when creating an event:

const event = nylas.events.build({
  title: 'New Years Party!',
  calendarId: CALENDAR_ID,
  when: { start_time: 1546290000, end_time: 1546300800 },
  participants: [{ email: 'swag@nylas.com', name: 'My Nylas Friend' }],
  location: 'My House!',
  metadata: {
      'event_type': 'gathering'
  }
});

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@shortcut-integration
Copy link
Copy Markdown

This pull request has been linked to Clubhouse Story #58040: Node SDK - add support for event metadata (Wix).

@mrashed-dev
Copy link
Copy Markdown
Contributor Author

Testing was complete using an event (created with metadata) via both the API and via the SDK as well. Events can be created with metadata within the SDK and the SDK can also read metadata successfully.

@mrashed-dev mrashed-dev merged commit ad3cc6a into main May 14, 2021
@agtang96 agtang96 deleted the mostafarashed/ch58040/node-sdk-add-support-for-event-metadata-wix branch April 5, 2023 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants