```
messaging.sms.send(document.getElementById("phoneNumber").value, document.getElementById("messageText").value)
    .then(function(body) {
      printLog(JSON.stringify(body));
    }, function (error) {
      printLog(JSON.stringify(error));
    });
```