Zoznam MSISDN na blackliste
Endpoint: GET https://api.bsms.viamobile.sk/blacklist/list
HTTP Basic Autorizácia
HTTP hlavička | Hodnota |
---|---|
Authorization | Basic base64(username:password) |
GET https://api.bsms.viamobile.sk/blacklist/list HTTP/1.1
Content-Type: text/xml;charset=UTF-8
Authorization: Basic dGVzdDp0ZXN0
Host: api.bsms.viamobile.sk
Error kódy
Kód | Popis | |
---|---|---|
1000 | Unauthorized | Nesprávne meno alebo heslo |
{
"response": {
"status": 401,
"code": 1000,
"description": "Unauthorized"
}
}
Blacklist
Request
Parameter | Povinný | Typ | Popis |
---|---|---|---|
date_from |
Nepovinný | Date | Dátum od vo formáte YYYY-MM-DD |
date_to |
Nepovinný | Date | Dátum do vo formáte YYYY-MM-DD |
GET https://api.bsms.viamobile.sk/blacklist/list?date_from=2024-01-01&date_to=2025-01-01 HTTP/1.1
Content-Type: text/xml;charset=UTF-8
Authorization: Basic dGVzdDp0ZXN0
Host: api.bsms.viamobile.sk
Response
Parameter | Povinný | Typ | Popis |
---|---|---|---|
/response/status | Povinný | Int32 | HTTP status (200 ok, 4xx chyba) |
/response/msisdns/msisdn | Povinný | String | Tel. číslo vo formáte MSISDN |
/response/msisdns/time_created | Povinný | Datetime | Dátum a čas pridania na blacklist |
{
"response":
{
"status": 200,
"msisdns": [
{
"msisdn":"+421903123456",
"time_created":"2024-10-02 21:35:29"
},
{
"msisdn":"+42190512356",
"time_created":"2000-01-01 00:00:00"
}
]
}
}