Documentation Index
Fetch the complete documentation index at: https://docs.wavebybemobi.com/llms.txt
Use this file to discover all available pages before exploring further.
Initialization
Initialize Wave.js with your public client_id.
const wave = Wave("your_client_id")
Mount offers
Include the Wave.js script on your page by adding it to the head of your HTML file. Next, create an empty DOM node (container) to use for mounting.
<head>
<script src="https://js.wavebybemobi.com/v1/"></script>
</head>
<body>
<div id="offers-list">
<!-- Script will insert the offers screen here -->
</div>
</body>
You can start the offers list screen adding the following code:
// Initialize list offers
const offers = await wave.initEmbeddedOffersList();
// Mount offers list
offers.mount('#offers-list');
Screen renders in an iframe that securely exchange information with Wave over an HTTPS connection.
Also, you can choose to mount: .initEmbeddedProfile() or .initEmbeddedOfferDetail()