Get Plivo Message
curl --request POST \
--url https://api.toingg.com/api/v3/get_plivo_message/{apiKey}/{campId}import requests
url = "https://api.toingg.com/api/v3/get_plivo_message/{apiKey}/{campId}"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.toingg.com/api/v3/get_plivo_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_plivo_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_plivo_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_plivo_message/{apiKey}/{campId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.toingg.com/api/v3/get_plivo_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
Get Plivio Message
POST
/
get_plivo_message
/
{apiKey}
/
{campId}
Get Plivo Message
curl --request POST \
--url https://api.toingg.com/api/v3/get_plivo_message/{apiKey}/{campId}import requests
url = "https://api.toingg.com/api/v3/get_plivo_message/{apiKey}/{campId}"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://api.toingg.com/api/v3/get_plivo_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_plivo_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_plivo_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_plivo_message/{apiKey}/{campId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.toingg.com/api/v3/get_plivo_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 “Add Plivio Message” endpoint allows users to integrate the Plivio messaging API into their Toingg account. By sending a POST request to the/get_plivo_message/{apiKey}/{campId} endpoint, users can add messaging capabilities, enabling them to send and receive messages through the Plivio platform. This functionality is crucial for enhancing communication within campaigns, ensuring that messaging is efficient and aligned with user needs. The endpoint supports seamless integration to improve messaging capabilities and align with evolving business requirements.
Example cURL Request
curl -X POST \
'https://api.toingg.com/api/v3/message/get_plivo_message/YOUR_API_KEY/YOUR_CAMP_ID' \
-H 'accept: application/json' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN'