Hi all!
When I test this HTTP request at Postman tool it runs perfectly, see the test below.
But, when I test it on the IBM RPA Studio, it´s returning invalid token error:
Here is the code:
defVar --name varURL_Envio_SMS
--type String
--value "http://srvvmeta01:8096/api/sms/send"
defVar --name varDestinatario_Celular_Teste
--type String
--value 31999855622
defVar --name varMensagem_Teste_SMS
--type String
--value "Teste API de envio de SMS da MGS, by Mauro Sérgio"
httpRequest --verb "Post"
--url "
${varURL_Envio_SMS}"
--formatter "Json"
--source "{\r\n\"token\": \"b88f39f8306875fc87rtbcb60eb15adad54e\",\r\n\"mktUser\":\"mesaop\",\r\n\"to\":
${varDestinatario_Celular_Teste},\r\n\"msg\":
${varMensagem_Teste_SMS}\r\n}"
--comment "Chamada HTTP para envio dos SMS" varSucesso_Chamada_EnvioSMS=success varResposta_EnvioSMS=value varStatus_Code_EnvioSMS=statusCode
------------------------------
Mauro Sérgio
------------------------------