Import Library
<!-- Fetch the library code from the Stagecast CDN -->
<script src="https://stagecast.se/media/lib/mdk/stagecast.min.js"></script>let SDK = new Stagecast({...config});
SDK.onConfigReceived(myCallback);
function myCallback() {
console.log('Moment has loaded');
}{
environment: 'prod',
userId: 'user@stagecast.se',
token: <api_token>,
momentClassData: {...},
momentClassId: <moment_class_id>,
momentId: <moment_id>,
eventId: <event_id>,
coordinates: ['0', '0'],
isGuest: true,
isActive: true,
isMomentActive: true
}Last updated