Limit stats JSON
Endpoint: https://api.bsms.viamobile.sk/stats/limit
HTTP Basic Auth
HTTP header | Value |
---|---|
Authorization | Basic base64(username:password) |
GET https://api.bsms.viamobile.sk/json/hlr?msisdn=421903123456 HTTP/1.1
Content-Type: text/xml;charset=UTF-8
Authorization: Basic dGVzdDp0ZXN0
Host: api.bsms.viamobile.sk
Error codes
Kód | Popis | |
---|---|---|
1000 | Unauthorized | Unknown username or password |
{
"response": {
"status": 401,
"code": 1000,
"description": "Unauthorized"
}
}
Limits
Response
Parameter | Required | Type | Description |
---|---|---|---|
/response/status | Required | Int32 | Server response (200 in case of success, 4xx in case of error) |
/response/msg/sent | Required | int32 | Number of sent messages |
/response/msg/remaining | Required | int32 | Remaining messages |
/response/msg/max | Required | int32 | Max number of sent messages per day |
{
"response":
{
"status": 200,
"msg": {
"sent":61,
"remaining":339,
"max":400
}
}
}