Discussions
Example in documentation not working
almost 6 years ago by Alex
Copied and pasted example from https://developer.servicem8.com/docs/client-api
<script src="https://platform.servicem8.com/sdk/1.0/sdk.js"></script>
<script type="text/javascript">
var client = SMClient.init();
client.resizeWindow(450, 600).then(function(result) {
console.log("Add-on Window Resized");
});
</script>
Results in:
Invalid Response Received
'\n console'
Any suggestions?