Get All RSS Campaigns
curl --request GET \
--url https://api.aimtell.com/prod/rss-notifications/{id} \
--header 'X-Authorization-Api-Key: <api-key>'import requests
url = "https://api.aimtell.com/prod/rss-notifications/{id}"
headers = {"X-Authorization-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Authorization-Api-Key': '<api-key>'}};
fetch('https://api.aimtell.com/prod/rss-notifications/{id}', 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.aimtell.com/prod/rss-notifications/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Authorization-Api-Key: <api-key>"
],
]);
$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.aimtell.com/prod/rss-notifications/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Authorization-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aimtell.com/prod/rss-notifications/{id}")
.header("X-Authorization-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aimtell.com/prod/rss-notifications/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Authorization-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": 128,
"idSite": 179,
"name": "Sample RSS Notification # 1",
"feed_url": "https://demo.aimtell.com/rss.xml",
"title": "{rss_title}",
"body": "{rss_body}",
"link": "{rss_link}",
"segments": "12345",
"status": 1,
"uid": "aBc1234567980",
"customIcon": "https://s3.amazonaws.com/siteicons.aimtell.com/icon_40_1443032714..jpg",
"customImage": "",
"actions": "{\"a01\":{\"title\":\"Read More\",\"link\":\"{rss_link}\"}}",
"collapse_key": null,
"max_enabled": 0,
"max_type": "hourly",
"max_value": 0,
"createdAt": "2020-08-18 20:04:19",
"updatedAt": "2020-12-01 17:41:37",
"campaign_results": {
"sent": 64,
"delivered": 64,
"bounced": 0,
"clicked": 6,
"conversions": 0,
"conversions_value": 0,
"clicked_a01": 0,
"clicked_a02": 1
}
}
]{
"result": "error",
"message": "Invalid token.",
"error_code": 71831
}RSS Campaigns
Get All RSS Campaigns
Fetches All RSS Campaigns
GET
/
prod
/
rss-notifications
/
{id}
Get All RSS Campaigns
curl --request GET \
--url https://api.aimtell.com/prod/rss-notifications/{id} \
--header 'X-Authorization-Api-Key: <api-key>'import requests
url = "https://api.aimtell.com/prod/rss-notifications/{id}"
headers = {"X-Authorization-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Authorization-Api-Key': '<api-key>'}};
fetch('https://api.aimtell.com/prod/rss-notifications/{id}', 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.aimtell.com/prod/rss-notifications/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Authorization-Api-Key: <api-key>"
],
]);
$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.aimtell.com/prod/rss-notifications/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Authorization-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aimtell.com/prod/rss-notifications/{id}")
.header("X-Authorization-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aimtell.com/prod/rss-notifications/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Authorization-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": 128,
"idSite": 179,
"name": "Sample RSS Notification # 1",
"feed_url": "https://demo.aimtell.com/rss.xml",
"title": "{rss_title}",
"body": "{rss_body}",
"link": "{rss_link}",
"segments": "12345",
"status": 1,
"uid": "aBc1234567980",
"customIcon": "https://s3.amazonaws.com/siteicons.aimtell.com/icon_40_1443032714..jpg",
"customImage": "",
"actions": "{\"a01\":{\"title\":\"Read More\",\"link\":\"{rss_link}\"}}",
"collapse_key": null,
"max_enabled": 0,
"max_type": "hourly",
"max_value": 0,
"createdAt": "2020-08-18 20:04:19",
"updatedAt": "2020-12-01 17:41:37",
"campaign_results": {
"sent": 64,
"delivered": 64,
"bounced": 0,
"clicked": 6,
"conversions": 0,
"conversions_value": 0,
"clicked_a01": 0,
"clicked_a02": 1
}
}
]{
"result": "error",
"message": "Invalid token.",
"error_code": 71831
}⌘I

