Discussions

Ask a Question
Back to All

Example in documentation not working

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?