Start Receiving Subscriber Data
Authentication
SMS MO
import requests
url = f"{{ client_url }}"
# Define the payload data in a Python dictionary
data = {
"type": "sms"
"telco": "mtn",
"from": "2348020000000",
"to": "48974",
"message": "games28",
"product_id": "103",
"sent_date": "2024-01-02 23:50:37"
}
# Define headers with authorization and content type
headers = {
"Authorization": f"Bearer {api_token}",
"Content-Type": "application/json"
}
# Send the POST request
response = requests.post(url, json=data, headers=headers)
# Check the response
if response.status_code == 200:
print("Request was successful.")
print(response.json())
else:
print(f"Request failed with status code: {response.status_code}")
print(response.text)
Activation
Renewal
Deactivation
SMS REST formats and conventions
JSON
Last updated