SMS.to为企业通过多种渠道与客户交流提供了一种更智能的方式。
通过SMS,WhatsApp或Viber消息以其首选渠道吸引客户。
通过我们的OmniMessaging和SMS API网关将SMS.to集成到您的工作流程中的丰富消息中。
在下面填写详细信息以计算您的
短信活动费用
我们的内置功能将帮助您遵守GDPR等不同的隐私法律法规。
通过跟踪链接的点击来收集有意义的分析和活动指标。
依靠我们与全球运营商的直接联系来实现对时间敏感的交付,从而提高交付速度。
我们在安全和认证方面进行投资,我们坚信透明性会为您提供从您购买的任何服务的详细报告。
我们强大的消息编辑器提供多达5个动态字段,可个性化和吸引您的受众,发送有意义的自定义提醒等。
如果您在其他地方以较低的价格获得了功能与服务之间的比较,我们将尝试匹配它,以便您永远都不会付出更多。
curl -L -X POST "https://api.sms.to/sms/send" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer <YOUR_API_KEY_OR_ACCESS_TOKEN>" \ -d "{ "message": "This is a test message", "to": "+355692179931", "sender_id": "SMS.to" }"
<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://api.sms.to/sms/send", 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 =>"{\n \"message\": \"This is a test message\",\n \"to\": \"+355692179931\",\n \"sender_id\": \"SMS.to\" \n}", CURLOPT_HTTPHEADER => array( "Content-Type: application/json", "Accept: application/json", "Authorization: Bearer <YOUR_API_KEY_OR_ACCESS_TOKEN>" ), )); $response = curl_exec($curl); curl_close($curl); echo $response;
var https = require('follow-redirects').https; var options = { 'method': 'POST', 'hostname': 'https://api.sms.to', 'path': '/sms/send', 'headers': { 'Content-Type': 'application/json', 'Authorization': 'Bearer <YOUR_API_KEY_OR_ACCESS_TOKEN>' }, 'maxRedirects': 20 }; var req = https.request(options, function (res) { var chunks = []; res.on("data", function (chunk) { chunks.push(chunk); }); res.on("end", function (chunk) { var body = Buffer.concat(chunks); console.log(body.toString()); }); res.on("error", function (error) { console.error(error); }); }); var postData = "{\n \"message\": \"This is a test message\",\n \"to\": \"+355692179931\",\n \"sender_id\": \"SMS.to\" \n}"; req.write(postData); req.end();
require "uri" require "net/http" url = URI("https://api.sms.to/sms/send") https = Net::HTTP.new(url.host, url.port); https.use_ssl = true request = Net::HTTP::Post.new(url) request["Content-Type"] = "application/json" request["Authorization"] = "Bearer <YOUR_API_KEY_OR_ACCESS_TOKEN>" request.body = "{\n \"message\": \"This is a test message\",\n \"to\": \"+355692179931\",\n \"sender_id\": \"SMS.to\" \n}" response = https.request(request) puts response.read_body
import http.client conn = http.client.HTTPSConnection("https://api.sms.to") payload = "{\n \"message\": \"This is a test message\",\n \"to\": \"+355692179931\",\n \"sender_id\": \"SMS.to\" \n}" headers = { 'Content-Type': 'application/json', 'Authorization': 'Bearer <YOUR_API_KEY_OR_ACCESS_TOKEN>' } conn.request("POST", "/sms/send", payload, headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient().newBuilder() .build(); MediaType mediaType = MediaType.parse("application/json"); RequestBody body = RequestBody.create(mediaType, "{\n \"message\": \"This is a test message\",\n \"to\": \"+355692179931\",\n \"sender_id\": \"SMS.to\" \n}"); Request request = new Request.Builder() .url("https://api.sms.to/sms/send") .method("POST", body) .addHeader("Content-Type", "application/json") .addHeader("Authorization", "Bearer <YOUR_API_KEY_OR_ACCESS_TOKEN>") .build(); Response response = client.newCall(request).execute();
package main import ( "fmt" "strings" "net/http" "io/ioutil" ) func main() { url := "https://api.sms.to/sms/send" method := "POST" payload := strings.NewReader("{\n \"message\": \"This is a test message\",\n \"to\": \"+355692179931\",\n \"sender_id\": \"SMS.to\" \n}") client := &http.Client { } req, err := http.NewRequest(method, url, payload) if err != nil { fmt.Println(err) } req.Header.Add("Content-Type", "application/json") req.Header.Add("Authorization", "Bearer <YOUR_API_KEY_OR_ACCESS_TOKEN>") res, err := client.Do(req) defer res.Body.Close() body, err := ioutil.ReadAll(res.Body) fmt.Println(string(body)) }