Ingen treff

Transaksjons-SMS – forespørselsmetoder

Eksempler på forespørsler til endepunktet simple/transactional med alle støttede metoder. Betydningen av parameterne finner du i spesifikasjonen; ferdig kode i de enkelte språkene finner du i eksemplene.

Advarsel

Det er strengt forbudt å bruke transaksjons-SMS til promotering eller markedsføring. Den skal kun brukes til varsling – som et SMS-varsel.

GET-metoden

Eksempel på fullstendig forespørsel:

https://portal.bulkgate.com/api/1.0/simple/transactional ?application_id=451 &application_token=NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj &number=420777777777 &text=test_sms &unicode=yes &sender_id=gText &sender_id_value=BulkGate &country=cz

Eksempel på forespørsel med landsprefiks:

https://portal.bulkgate.com/api/1.0/simple/transactional ?application_id=451 &application_token=NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj &number=777777777 &text=test_sms &country=cz

POST-metoden - application/x-www-form-urlencoded

Eksempel på fullstendig forespørsel:

POST /api/1.0/simple/transactional 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&text=test_sms&unicode=yes&sender_id=gText&sender_id_value=BulkGate&country=cz

Eksempel på forespørsel med landsprefiks:

POST /api/1.0/simple/transactional 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=777777777&text=test_sms&country=cz

POST-metoden - application/json

Eksempel på fullstendig forespørsel:

POST /api/1.0/simple/transactional HTTP/1.1 Host: portal.bulkgate.com Content-Type: application/json { "application_id": 451, "application_token": "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj", "number": "777777777", "text": "test_sms", "unicode": true, "sender_id": "gText", "sender_id_value": "BulkGate", "country": "cz" }

Eksempel på forespørsel med landsprefiks:

POST /api/1.0/simple/transactional HTTP/1.1 Host: portal.bulkgate.com Content-Type: application/json { "application_id": 451, "application_token": "NKN02TWE6NfBkfl-your-secret-token-Wf05GaqLIWLW4aBj", "number": "777777777", "text": "test_sms", "country": "cz" }
Var denne siden nyttig?