Check your account balance with your API key and password.
https://telcomw.com/api-v2/balanceSend the parameters as form-data.
| Parameter | Required | Description |
api_key |
YES | The unique API key of your account. |
password |
YES | The password of your account. |
curl --location --request POST 'https://telcomw.com/api-v2/balance' \ --data-urlencode 'api_key=YOUR_API_KEY' \ --data-urlencode 'password=YOUR_PASSWORD'
curl --location --request POST "https://telcomw.com/api-v2/balance" ^ --data-urlencode "api_key=YOUR_API_KEY" ^ --data-urlencode "password=YOUR_PASSWORD"
<?php
$data = [
'api_key' => 'YOUR_API_KEY',
'password' => 'YOUR_PASSWORD'
];
$ch = curl_init('https://telcomw.com/api-v2/balance');
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
print_r(json_decode($response, true));
const axios = require('axios');
axios.request({
method: 'post',
url: 'https://telcomw.com/api-v2/balance',
data: new URLSearchParams({
'api_key': 'YOUR_API_KEY',
'password': 'YOUR_PASSWORD'
})
}).then((res) => console.log(res.data))
.catch((err) => console.error(err.response ? err.response.data : err.message));
import requests
data = {
'api_key': 'YOUR_API_KEY',
'password': 'YOUR_PASSWORD'
}
response = requests.request('POST', 'https://telcomw.com/api-v2/balance', data=data)
print(response.json())