Download Guide3DSmsService_V0.1.0.min.js.
Download the Declaration Files Guide3DSmsService_V0.1.0.d.ts if you develop in Typescript to add auto-completion / IntelliSense to your IDE as follows:
/// <reference path="./yourpath/Guide3DSmsService_V0.1.0.d.ts"/>
<script type="text/javascript" src="https://services.guide3d.com/sms/js/Guide3DSmsService_V01.min.js"></script>
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);