Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

whatsapp api

import requests

url = "https://api.ultramsg.com/{{instance ID}}/messages/chat/"

payload='token={{Token}}&to={{mobile number}}&body=Hello%20world%20'
headers = {
    'Content-Type': 'application/x-www-form-urlencoded'
}

response = requests.request("POST", url, headers=headers, data=payload)

print(response.text)
Source by ultramsg.com #
 
PREVIOUS NEXT
Tagged: #whatsapp #api
ADD COMMENT
Topic
Name
6+5 =