/
Dokumentácia pre vývojárov BulkGate
/
Simple API
/
Propagačné SMS – metódy požiadavky
Propagačné SMS – metódy požiadavky
Príklady požiadavky pre endpoint simple/promotional vo všetkých podporovaných metódach. Význam parametrov nájdete v špecifikácii , hotový kód pre jednotlivé jazyky v príkladoch .
Metóda GET
Príklad úplnej požiadavky:
https:// portal.bulkgate.com /api/1.0/simple/promotional
? application_id = 451
& application_token = NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj
& number = 420777777777 ; 420775123456 ; 606123456
& text = test_sms
& unicode = yes
& sender_id = gText
& sender_id_value = BulkGate
& country = cz
& schedule = 2018-05-14T18:30:00-01:00
Príklad požiadavky s krajinou:
https:// portal.bulkgate.com /api/1.0/simple/promotional
? application_id = 451
& application_token = NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj
& number = 606123456 ; 420777777777
& text = test_sms
& country = cz
Príklad požiadavky s ISO 8601:
https:// portal.bulkgate.com /api/1.0/simple/promotional
? application_id = 451
& application_token = NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj
& number = 420775123456 ; 420606123456
& text = test_sms
& schedule = 2018-05-14T18:30:00-01:00
Príklad požiadavky s unix timestamp:
https:// portal.bulkgate.com /api/1.0/simple/promotional
? application_id = 451
& application_token = NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj
& number = 420775123456 ; 420606123456
& text = test_sms
& schedule = 1526992636
Metóda POST - application/x-www-form-urlencoded
Príklad úplnej požiadavky:
POST /api/1.0/simple/promotional HTTP/1.1
Host : portal.bulkgate.com
Content-Type : application/x-www-form-urlencoded
application_id=451&application_token=NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj&number=420777777777;420775123456;606123456&text=test_sms&unicode=yes&sender_id=gText&sender_id_value=BulkGate&country=cz&schedule=2018-05-14T18:30:00-01:00
Príklad požiadavky s krajinou:
POST /api/1.0/simple/promotional HTTP/1.1
Host : portal.bulkgate.com
Content-Type : application/x-www-form-urlencoded
application_id=451&application_token=NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj&number=606123456;420777777777&text=test_sms&country=cz
Príklad požiadavky s ISO 8601:
POST /api/1.0/simple/promotional HTTP/1.1
Host : portal.bulkgate.com
Content-Type : application/x-www-form-urlencoded
application_id=451&application_token=NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj&number=420775123456;420606123456&text=test_sms&schedule=2018-05-14T18:30:00-01:00
Príklad požiadavky s unix timestamp:
POST /api/1.0/simple/promotional HTTP/1.1
Host : portal.bulkgate.com
Content-Type : application/x-www-form-urlencoded
application_id=451&application_token=NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj&number=420775123456;420606123456&text=test_sms&schedule=1526992636
Metóda POST - application/json
Príklad úplnej požiadavky:
POST /api/1.0/simple/promotional HTTP/1.1
Host : portal.bulkgate.com
Content-Type : application/json
{
"application_id" : 451,
"application_token" : "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj" ,
"number" : "420777777777;420775123456;606123456" ,
"text" : "test_sms" ,
"unicode" : true,
"sender_id" : "gText" ,
"sender_id_value" : "BulkGate" ,
"country" : "cz" ,
"schedule" : "2018-05-14T18:30:00-01:00"
}
Príklad požiadavky s krajinou:
POST /api/1.0/simple/promotional HTTP/1.1
Host : portal.bulkgate.com
Content-Type : application/json
{
"application_id" : 451,
"application_token" : "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj" ,
"number" : "420777777777;420775123456;606123456" ,
"text" : "test_sms" ,
"country" : "cz"
}
Príklad požiadavky s ISO 8601:
POST /api/1.0/simple/promotional HTTP/1.1
Host : portal.bulkgate.com
Content-Type : application/json
{
"application_id" : 451,
"application_token" : "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj" ,
"number" : "420777777777;420775123456;606123456" ,
"text" : "test_sms" ,
"schedule" : "2018-05-14T18:30:00-01:00"
}
Príklad požiadavky s unix timestamp:
POST /api/1.0/simple/promotional HTTP/1.1
Host : portal.bulkgate.com
Content-Type : application/json
{
"application_id" : 451,
"application_token" : "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj" ,
"number" : "420777777777;420775123456;606123456" ,
"text" : "test_sms" ,
"schedule" : 1526992636
}
Bola táto stránka užitočná?
thumb_up Áno
thumb_down Nie
Ďakujeme za spätnú väzbu.