Skip to content

[76803] Event to ICS Support#308

Merged
mrashed-dev merged 7 commits into
mainfrom
mostafarashed/sc-76803/event-to-ics-support
Jan 27, 2022
Merged

[76803] Event to ICS Support#308
mrashed-dev merged 7 commits into
mainfrom
mostafarashed/sc-76803/event-to-ics-support

Conversation

@mrashed-dev
Copy link
Copy Markdown
Contributor

Description

This PR enables support for generating an ICS file from an Event.

Usage

Nylas.config({clientId: 'clientId', clientSecret: 'clientSecret'});
const nylas = Nylas.with('access_token');

const exampleEvent = await nylas.events.find('{id}');

// Generate an ICS from an event
let ics = await exampleEvent.generateICS();

// You can also pass ICS Options for more configuration
ics = await exampleEvent.generateICS({
  iCalUID="test_uuid",
  method="add",
  prodId="test_prodid"
})

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.

It's only properly set if one of the following combinations are set:

- both start_time and end_time
- both start_date and end_date
- time
- date
@mrashed-dev mrashed-dev requested review from a team, max-lightning and philrenaud and removed request for a team January 19, 2022 00:19
@shortcut-integration
Copy link
Copy Markdown

This pull request has been linked to Shortcut Story #76803: Event to ICS support.

@mrashed-dev mrashed-dev merged commit a1f5a89 into main Jan 27, 2022
@mrashed-dev mrashed-dev deleted the mostafarashed/sc-76803/event-to-ics-support branch January 27, 2022 17:12
@mrashed-dev mrashed-dev mentioned this pull request Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants