function testSms() { var SW_PHONE = '14244242424'; // var SW_TO = '15255255252'; // var SW_MSG = 'Test SMS on Signalwire'; // var SW_IMG = ''; // // var SW_PROJ = 'abcdefg'; var SW_TOKEN = '1234567'; // var SW_SPACE = 'https://ooooo.signalwire.com/api/laml/2010-04-01/Accounts/' + SW_PROJ + ':' + SW_TOKEN; // try { UrlFetchApp.fetch(SW_SPACE, { method: 'post', headers: { Authorization: 'Basic ' + Utilities.base64Encode(SW_PROJ + ":" + 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); } }