Get Subscription Package. Requires "get_subscription" API permission.
QUERY PARAMETERS
secret
required
|
string
The API secret you copied from (Tools -> API Keys) page |
Responses
Successful response
Error response
Request samples
<?php
// Define the API endpoint and parameters
$url = "https://www.hallo-mobile.de/api/get/subscription?secret=YOUR_API_SECRET";// Initialize cURL session
$ch = curl_init();// Set cURL options
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);// Execute the request
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);// Handle the response
if ($http_code === 200) {
echo "Success: " . $response;
} else {
echo "Error: HTTP Code " . $http_code . ", Response: " . $response;
}// Close cURL session
curl_close($ch);
Response samples
{
"status": 200,
"message": "Subscription Package",
"data": {
"name": "Starter",
"usage": {
"sms_send": {
"used": 262,
"limit": 1000
},
"sms_receive": {
"used": 139,
"limit": 250
},
"ussd": {
"used": 16,
"limit": 0
},
"notifications": {
"used": 55,
"limit": 0
},
"contacts": {
"used": 7,
"limit": 50
},
"devices": {
"used": 3,
"limit": 3
},
"apikeys": {
"used": 4,
"limit": 5
},
"webhooks": {
"used": 1,
"limit": 5
},
"actions": {
"used": 3,
"limit": 0
},
"scheduled": {
"used": 0,
"limit": 0
},
"wa_send": {
"used": 3,
"limit": 0
},
"wa_receive": {
"used": 19,
"limit": 0
},
"wa_accounts": {
"used": 1,
"limit": 0
}
}
}
}or
{
"status": 400,
"message": "Invalid Parameters!",
"data": false
}