I am getting error as
"success":false, "error":"You need to be authorized to make this request.",
Below is the code I have written
function post_phone() {
var ss = SpreadsheetApp.getActiveSpreadsheet();
var ph = ss.getRange('E5').getValue();
var url = 'http://someurl/processdata.php';
var payload =
{
phone : ph
};
var options =
{
"method": 'POST',
"payload": payload
};
var response = UrlFetchApp.fetch(url, options);
Logger.log(response);
}