cronofy-scheduler-embed

0.0.8 • Public • Published

Cronofy Scheduler Embed

Cronofy's powerful Scheduler, embedded into your application.

Full documentation can be found here: docs.cronofy.com/developers/api-alpha/embedded-scheduler

Install

npm i -S cronofy-scheduler-embed

Generate a Embed token

You'll need to setup an Embed Secret for your Cronofy application, and then use that to sign an Embed Token JWT. A full guide on these steps is available in our documentation.

Add a Scheduler button to your page

<cronofy-scheduler-button
  id="my-scheduler-button"
  embed-token="{EMBED_TOKEN}"
  correlation-id="event-1234"
  recipient-email="doc@evenitron.com"
  event-summary="Driving lessons - Marty & Doc"
>
</cronofy-scheduler-button>

Receive a notification when the user creates a Scheduler link

document
  .getElementById("#my-scheduler-button")
  .addEventListener("cronofyschedulerrequestcreated", function(event) {
    console.log("Cronofy Scheduler request created", event);
  });

Details on the fields available can be found in our documentation.

Readme

Keywords

none

Package Sidebar

Install

npm i cronofy-scheduler-embed

Weekly Downloads

4,185

Version

0.0.8

License

ISC

Unpacked Size

61.8 kB

Total Files

8

Last publish

Collaborators

  • gshutler
  • cronofy-ops
  • cronofy-ad