Documentation

Guide3D SMS Service

Code-Example

Status

Loading...

Ok
© 2017 3d-berlin GmbH

Code-Example

Back

HTML


<script type="text/javascript" src="https://services.guide3d.com/sms/js/Guide3DSmsService_V01.min.js"></script>
                    

JavaScript


var oGuide3DSmsServiceOptions = {
    "debug": true,  // true to simulate, false in production
    "callback": function (oEvent) {
        switch (oEvent.id) {
        case Guide3DSmsService.EVENT_LOADED:
            console.log(oEvent);
            oGuide3DSmsService.send("0049 172 123456", "Message text", "SENDER");
            break;
        case Guide3DSmsService.EVENT_MESSAGE_SENT:
            console.log(oEvent);
            break;
        case Guide3DSmsService.EVENT_MESSAGE_FAILED:
            console.log(oEvent);
            break;
        default:
            console.log("Unsupported Guide3D SMS Service event " + oEvent.id);
        }
    }
};
var oGuide3DSmsService = new Guide3DSmsService(oGuide3DSmsServiceOptions);
                    
Open Example
© 2017 3d-berlin GmbH