/
BulkGate utviklerdokumentasjon
/
Simple API
/
Markedsførings-SMS – forespørselsmetoder
Markedsførings-SMS – forespørselsmetoder
Eksempler på forespørsler til endepunktet simple/promotional med alle støttede metoder. Betydningen av parameterne finner du i spesifikasjonen ; ferdig kode i de enkelte språkene finner du under eksempler .
GET-metoden
Eksempel på en fullstendig forespørsel:
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
Eksempel på en forespørsel med land:
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
Eksempel på en forespørsel med 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
Eksempel på en forespørsel med Unix-tidsstempel:
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
POST-metoden - application/x-www-form-urlencoded
Eksempel på en fullstendig forespørsel:
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
Eksempel på en forespørsel med land:
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
Eksempel på en forespørsel med 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
Eksempel på en forespørsel med Unix-tidsstempel:
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
POST-metoden - application/json
Eksempel på en fullstendig forespørsel:
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"
}
Eksempel på en forespørsel med land:
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"
}
Eksempel på en forespørsel med 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"
}
Eksempel på en forespørsel med Unix-tidsstempel:
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
}
Var denne siden nyttig?
thumb_up Ja
thumb_down Nei
Takk for tilbakemeldingen.