Hello,
I am trying to send a whatsapp message through a rest api once a new row is added in table. So I have created a behavious and added a webhook action like:
Preset: Custom
URL: https://app.messageautosender.com/api/v1/message/create
HTTP Verb: POST
HTTP Content Type: JSON
Body:
{
‘username’ : “name”,
‘password’ : “password”,
‘recipientIds’ : “<>”,
‘Message’ : “Hi”
}
While testing this code, I am getting a bad response error. Can some guide me as to where am I going wrong and what am I missing in the format.
I have used my API in AppScript and that seems to be working fine. I am also attaching a sample of my AppScript Code…
var params = {
‘username’ : Username,
‘password’ : Password,
‘recipientIds’ : ID,
‘Message’ : Message
};
var options ={
‘method’ : ‘post’,
‘payload’ : params
};
var result= UrlFetchApp.fetch(“https://app.messageautosender.com/api/v1/message/create”, options);
I have been trying to figure this error out from months. It’ll be appreciated if anyone can help.
User | Count |
---|---|
35 | |
35 | |
28 | |
23 | |
18 |