/
Documentação para programadores BulkGate
/
Simple API
/
SMS promocional – métodos do pedido
SMS promocional – métodos do pedido
Exemplos de pedidos para o endpoint simple/promotional em todos os métodos suportados. Para o significado dos parâmetros, consulte a especificação ; para código pronto em cada linguagem, consulte os exemplos .
Método GET
Exemplo de um pedido completo:
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
Exemplo de pedido com país:
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
Exemplo de pedido com 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
Exemplo de pedido com 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
Método POST - application/x-www-form-urlencoded
Exemplo de um pedido completo:
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
Exemplo de pedido com país:
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
Exemplo de pedido com 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
Exemplo de pedido com 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
Método POST - application/json
Exemplo de um pedido completo:
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"
}
Exemplo de pedido com país:
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"
}
Exemplo de pedido com 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"
}
Exemplo de pedido com 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
}
Esta página foi útil?
thumb_up Sim
thumb_down Não
Obrigado pelo seu feedback.