AkoweAje-Backend / test_simulation.py
Archimedis's picture
Deploy Clean (No Secrets)
f2444be
raw
history blame contribute delete
498 Bytes
import requests
url = "http://127.0.0.1:8000/webhook"
# We simulate a WhatsApp message coming from Twilio
payload = {
"From": "whatsapp:+2348000000000",
"Body": "I sell 50 bags of cement to Dangote for 200000 naira",
}
print("πŸš€ Sending test message to AkoweAje...")
try:
response = requests.post(url, data=payload)
print(f"βœ… Response Status: {response.status_code}")
print(f"πŸ“œ Response Body: {response.text}")
except Exception as e:
print(f"❌ Error: {e}")