SDKs
Yorlet.js SDK
Set up the Yorlet.js client-side SDK in your web application.
Yorlet’s browser-side JavaScript library can be used for creating enquiries.
Including Yorlet.js
Include the Yorlet.js script on each page of your site. It should always be loaded directly from https://js.yorlet.com
, rather than included in a bundle or hosted yourself.
Initialising Yorlet.js
Use new Yorlet()
to create an instance of the Yorlet.js SDK. Your Yorlet publishable API key is required when initialising.
Create an enquiry
To create an enquiry via the API, create an Enquiry object.
Ensure only one enquiry is created
We recommend including a idempotency key to ensure only one enquiry record is created.