This commit is contained in:
parent
c43bda9b2a
commit
91ad0232f0
2 changed files with 44 additions and 1 deletions
|
|
@ -1 +1 @@
|
||||||
Subproject commit 786d404938331197c7edc4c719b661d9dae6a26f
|
Subproject commit 1053c86a73bd4b238d6436d3bcf342b53f43d68c
|
||||||
43
sim_wa.sh
Executable file
43
sim_wa.sh
Executable file
|
|
@ -0,0 +1,43 @@
|
||||||
|
#!/bin/bash
|
||||||
|
curl -X POST http://localhost:8080/webhook/whatsapp/default \
|
||||||
|
-H "Content-Type: application/json" \
|
||||||
|
-H "X-Hub-Signature-256: sha256=dummy" \
|
||||||
|
-d '{
|
||||||
|
"object": "whatsapp_business_account",
|
||||||
|
"entry": [
|
||||||
|
{
|
||||||
|
"id": "1234567890",
|
||||||
|
"changes": [
|
||||||
|
{
|
||||||
|
"value": {
|
||||||
|
"messaging_product": "whatsapp",
|
||||||
|
"metadata": {
|
||||||
|
"display_phone_number": "552140402160",
|
||||||
|
"phone_number_id": "323250907549153"
|
||||||
|
},
|
||||||
|
"contacts": [
|
||||||
|
{
|
||||||
|
"profile": {
|
||||||
|
"name": "Test User"
|
||||||
|
},
|
||||||
|
"wa_id": "5511999999999"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"messages": [
|
||||||
|
{
|
||||||
|
"from": "5511999999999",
|
||||||
|
"id": "wamid.simulated_1",
|
||||||
|
"timestamp": "1625688536",
|
||||||
|
"text": {
|
||||||
|
"body": "cristo"
|
||||||
|
},
|
||||||
|
"type": "text"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"field": "messages"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}'
|
||||||
Loading…
Add table
Reference in a new issue