- HttpResponse
response = - Unirest.post(“http://{base_url}/HTTP/api/Client/SendSMS”)
- .header(“username”, “{username}”)
- .header(“password”, “{password}”)\
- .header(“content-type”, “application/json”)
- .header(“accept”, “application/json”){
- .body(“{\”source\”:\”{senderID}\”,\”destination\”:\”{destinationnumber}\”,\”text\”:
- \”{messagecontent}\,\”dataCoding\”:\”{DataCodingNumber}\””}”)
- .asString();