BulkSMS API

Python

Delivery Report

import requests
endpoint = "https://roycebulksms.com/api/delivery-report"
data ={
'message_id': <message_id>
}
headers = {
"Authorization": "Bearer "+api_key
}
response=requests.post(endpoint, data=data, headers=headers)
print(response.json())

Credit Balance

import requests
endpoint = "https://roycebulksms.com/api/credit-balance"
headers = {
"Authorization": "Bearer "+api_key
}
response=requests.post(endpoint, data=data, headers=headers)
print(response.json())