cURL
curl "https://app.tatango.com/api/v2/lists/ID/webhooks" -X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-u emailaddress@mydomain.com:my_api_key \
-H "Host: example.org" \
-H "Cookie: "require 'net/http'
require 'uri'
uri = URI.parse('https://app.tatango.com/api/v2/lists/ID/webhooks')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri.request_uri)
request.basic_auth("emailaddress@mydomain.com", "my_api_key")
request['Accept'] = 'application/json'
request['Content-Type'] = 'application/json'
response = http.request(request)import requests
url = "https://app.tatango.com/api/v2/lists/{ID}/webhooks"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://app.tatango.com/api/v2/lists/{ID}/webhooks', 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://app.tatango.com/api/v2/lists/{ID}/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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://app.tatango.com/api/v2/lists/{ID}/webhooks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.tatango.com/api/v2/lists/{ID}/webhooks")
.header("Authorization", "Basic <encoded-value>")
.asString();{
"status": "OK",
"per_page": 10,
"count": 1,
"page": 1,
"pages_count": 1,
"webhooks": [
{
"callback_url": "http://localhost/dev/null",
"created_at": "2016-09-07T14:11:13-07:00",
"enabled": true,
"id": 6,
"list_id": 31,
"message_sent": false,
"subscribe": true,
"unsubscribe": false,
"updated_at": "2016-09-07T14:11:13-07:00"
}
]
}{
"status": "error",
"error": "List not found"
}Webhooks
Listing Webhooks
This endpoint lists webhooks
GET
/
api
/
v2
/
lists
/
{ID}
/
webhooks
cURL
curl "https://app.tatango.com/api/v2/lists/ID/webhooks" -X GET \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-u emailaddress@mydomain.com:my_api_key \
-H "Host: example.org" \
-H "Cookie: "require 'net/http'
require 'uri'
uri = URI.parse('https://app.tatango.com/api/v2/lists/ID/webhooks')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri.request_uri)
request.basic_auth("emailaddress@mydomain.com", "my_api_key")
request['Accept'] = 'application/json'
request['Content-Type'] = 'application/json'
response = http.request(request)import requests
url = "https://app.tatango.com/api/v2/lists/{ID}/webhooks"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://app.tatango.com/api/v2/lists/{ID}/webhooks', 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://app.tatango.com/api/v2/lists/{ID}/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$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://app.tatango.com/api/v2/lists/{ID}/webhooks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.tatango.com/api/v2/lists/{ID}/webhooks")
.header("Authorization", "Basic <encoded-value>")
.asString();{
"status": "OK",
"per_page": 10,
"count": 1,
"page": 1,
"pages_count": 1,
"webhooks": [
{
"callback_url": "http://localhost/dev/null",
"created_at": "2016-09-07T14:11:13-07:00",
"enabled": true,
"id": 6,
"list_id": 31,
"message_sent": false,
"subscribe": true,
"unsubscribe": false,
"updated_at": "2016-09-07T14:11:13-07:00"
}
]
}{
"status": "error",
"error": "List not found"
}Request URL
GET https://app.tatango.com/api/v2/lists/{ID}/webhooks/
Authorizations
The momoGood Messaging API v2 authenticates requests by validating an API key passed via HTTP Basic Authentication. Use your login email as the username and your API key as the password.
Path Parameters
The ID of the list
⌘I