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.