Closed FitterX closed 4 years ago
You can take a look at https://github.com/vasani-arpit/WBOT/blob/master/docs/Webhook-example.md for now. I am planing to write a article or make a video about that.
Hey Vasani, thank you!
I'm using php to get the message and the type is working! But I can't send the return (response) through PHP. Can you help me with a little example?
here is what your php endpoint should return
[{
"text": "Look, Reply from Webhook!",
"type": "message"
}]
You can check the errors by opening DevTools of the whatsapp window.
i try this! echo json_encode(['"text"' => 'test', '"type"' => 'message']);
result: { "text": "test", "type": "message" }
Hey..sorry.. I add brackets its work now! Thank for help!
I thank you, the application is running well. I have been able to create a BOT using the webhook. Please help to provide examples in utilizing existing functions, such as:
window.WAPI.getMyContacts = function () { return window.Store.Contact.filter((contact) => contact.isMyContact === true).map((contact) => WAPI._serializeContactObj(contact)); };
BR
Hi all. I try webhooks but no have success.
Have tutorial?