Skip to content

One msg get 20/50 time #2

@Nizam861

Description

@Nizam861

Also one another script

/**

  • This function is executed when a POST request is made to the published
  • script URL. It appends the SMS details as a row in first sheet in the
  • spreadsheet bound to the script.
  • For documentation about the request parameter e please see:
  • https://developers.google.com/apps-script/guides/web#request_parameters
    */
    function doPost(e) {
    let sms = JSON.parse(e.postData.contents);
    let sheet = SpreadsheetApp.getActive().getSheets()[0];
    sheet.appendRow([sms.from, sms.messageType, sms.sim, sms.sentStamp, sms.receivedStamp, sms.text]);
    return ContentService
    .createTextOutput(JSON.stringify({}))
    .setMimeType(ContentService.MimeType.JSON);
    }

Image
Image
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions