API iNTEGRATION
Integrate Any Application With Secure, Scalable, Powerful SMS APIs with ease.
Automate Texting By Sending And Receiving SMS Via Our SMS Apis. Access Sample Codes In Csharp-Restsharp, Java, Javascript-Fetch etc.
SMS API Is An Excellent SMS API To Automate Text Messaging. By Sending And Receiving SMS Via Our SMS Apis, You Can Send & Receive Bulk Sms Messages With The Help Of This API. With The Help Of Our SMS API, You Can Send More Than 100, 000 Messages In A Day.
Why Trustsignal For Email Communications?
Import Java.Io.*;
Import Okhttp3.*;
Public Class Main {
Public Static Void Main(String []Args) Throws Ioexception{
Okhttpclient Client = New Okhttpclient().Newbuilder()
.Build();
Mediatype Mediatype = Mediatype.Parse(“Application/Json”);
Requestbody Body = Requestbody.Create(Mediatype, “{\”Sender_Id\”: \”TESTAC\”,\”To\”: [9999999999],\”Route\”: \”Transactional\”,\”Message\”: \”Welcome To TS. Panel Link Https://Trustsignal.Io. Special Discount Link Sent On Registered Email ID.\\N\\Nteam TS\”,\”Template_Id\”: \”1507163121212121212\”}”);
Request Request = New Request.Builder()
.Url(“Https://Api.Trustsignal.Io/V1/Sms?Api_Key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX”)
.Method(“POST”, Body)
.Addheader(“Content-Type”, “Application/Json”)
.Build();
Response Response = Client.Newcall(Request).Execute();
System.Out.Println(Response.Body().String());
}
}
var myHeaders = new Headers();
myHeaders.append(“Content-Type”, “application/json”);
var raw = JSON.stringify({
“sender_id”: “TESTAC”,
“to”: [
9999999999
],
“route”: “transactional”,
“message”: “Welcome to TS. Panel Link https://trustsignal.io. Special Discount Link sent on Registered Email ID.\n\nTeam TS”,
“template_id”: “1507163121212121212”
});
var requestOptions = {
method: ‘POST’,
headers: myHeaders,
body: raw,
redirect: ‘manual’
};
fetch(“https://api.trustsignal.io/v1/sms?api_key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX”, requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log(‘error’, error));
var axios = require(‘axios’);
var data = JSON.stringify({
“sender_id”: “TESTAC”,
“to”: [
9999999999
],
“route”: “transactional”,
“message”: “Welcome to TS. Panel Link https://trustsignal.io. Special Discount Link sent on Registered Email ID.\n\nTeam TS”,
“template_id”: “1507163121212121212”
});
var config = {
method: ‘post’,
url: ‘https://api.trustsignal.io/v1/sms?api_key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX’,
headers: {
‘Content-Type’: ‘application/json’
},
data: data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
var axios = requir
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => ‘https://api.trustsignal.io/v1/sms?api_key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX’,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => ”,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => ‘POST’,
CURLOPT_POSTFIELDS =>'{
“sender_id”: “TESTAC”,
“to”: [
9999999999
],
“route”: “transactional”,
“message”: “Welcome to TS. Panel Link https://trustsignal.io. Special Discount Link sent on Registered Email ID.\\n\\nTeam TS”,
“template_id”: “1507163121212121212”
}’,
CURLOPT_HTTPHEADER => array(
‘Content-Type: application/json’
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
e(‘axios’);
var data = JSON.stringify({
“sender_id”: “TESTAC”,
“to”: [
9999999999
],
“route”: “transactional”,
“message”: “Welcome to TS. Panel Link https://trustsignal.io. Special Discount Link sent on Registered Email ID.\n\nTeam TS”,
“template_id”: “1507163121212121212”
});
var config = {
method: ‘post’,
url: ‘https://api.trustsignal.io/v1/sms?api_key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX’,
headers: {
‘Content-Type’: ‘application/json’
},
data: data
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
import requests
import json
url = “https://api.trustsignal.io/v1/sms?api_key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX”
payload = json.dumps({
“sender_id”: “TESTAC”,
“to”: [
9999999999
],
“route”: “transactional”,
“message”: “Welcome to TS. Panel Link https://trustsignal.io. Special Discount Link sent on Registered Email ID.\n\nTeam TS”,
“template_id”: “1507163121212121212”
})
headers = {
‘Content-Type’: ‘application/json’
}
response = requests.request(“POST”, url, headers=headers, data=payload)
print(response.text)
using System;
using RestSharp;
namespace HelloWorldApplication {
class HelloWorld {
static void Main(string[] args) {
var client = new RestClient(“https://api.trustsignal.io/v1/sms?api_key=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX”);
client.Timeout = -1;
client.FollowRedirects = false;
var request = new RestRequest(Method.POST);
request.AddHeader(“Content-Type”, “application/json”);
var body = @”{“”sender_id””: “”TESTAC””,””to””: [9999999999],””route””: “”transactional””,””message””: “”Welcome to TS. Panel Link https://trustsignal.io. Special Discount Link sent on Registered Email ID.\n\nTeam TS””,””template_id””: “”1507163121212121212″”}”;
request.AddParameter(“application/json”, body, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
}
}
}