Get Twilio Message
curl --request POST \
--url https://api.toingg.com/api/v3/get_twilio_message/{apiKey}/{campId}import requests
url = "https://api.toingg.com/api/v3/get_twilio_message/{apiKey}/{campId}"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.toingg.com/api/v3/get_twilio_message/{apiKey}/{campId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.toingg.com/api/v3/get_twilio_message/{apiKey}/{campId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.toingg.com/api/v3/get_twilio_message/{apiKey}/{campId}"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.toingg.com/api/v3/get_twilio_message/{apiKey}/{campId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.toingg.com/api/v3/get_twilio_message/{apiKey}/{campId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Mesage Handling
Test Merssage Pipeline
POST
/
get_twilio_message
/
{apiKey}
/
{campId}
Get Twilio Message
curl --request POST \
--url https://api.toingg.com/api/v3/get_twilio_message/{apiKey}/{campId}import requests
url = "https://api.toingg.com/api/v3/get_twilio_message/{apiKey}/{campId}"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.toingg.com/api/v3/get_twilio_message/{apiKey}/{campId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.toingg.com/api/v3/get_twilio_message/{apiKey}/{campId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.toingg.com/api/v3/get_twilio_message/{apiKey}/{campId}"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.toingg.com/api/v3/get_twilio_message/{apiKey}/{campId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.toingg.com/api/v3/get_twilio_message/{apiKey}/{campId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_body{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Overview
The “Test Message Pipeline” endpoint is designed for testing the message pipeline functionality. Users need to send a POST request to the/get_twilio_message/{apiKey}/{campId} endpoint, including their API key, campaign ID, phone number, and the text message. This process allows users to verify the messaging capabilities and ensure that the pipeline is functioning correctly, facilitating effective communication within campaigns.