function testSms() { var SW_PHONE = '+14242424242'; // var SW_TO = '+13233233232'; // var SW_MSG = 'Test SMS on Signalwire'; // var SW_IMG = ''; // // var SW_PROJ = 'abcdefg-0505-0505-abcdefg'; var SW_TOKEN = '01234567'; // var SW_SPACE = 'https://example.signalwire.com/api/laml/2010-04-01/Accounts/' + SW_PROJ + '/Messages.json'; // try { UrlFetchApp.fetch(SW_SPACE, { method: 'post', headers: { Authorization: 'Basic ' + Utilities.base64Encode(SW_TOKEN)}, payload: { To: SW_TO.toString(), From: SW_PHONE, Body: SW_MSG, }, }); var status = 'sent: ' + new Date(); } catch (err) { return 'error: ' + err; Browser.msgBox(err); } }