Read the AutoPhish weekly trend
curl --request GET \
--url https://api.cimento.app/v1/autophish/trend \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cimento.app/v1/autophish/trend"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cimento.app/v1/autophish/trend', 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.cimento.app/v1/autophish/trend",
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: Bearer <token>"
],
]);
$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.cimento.app/v1/autophish/trend"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.cimento.app/v1/autophish/trend")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cimento.app/v1/autophish/trend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"points": [
{
"clicked": 123,
"delivered": 123,
"opened": 123,
"reported": 123,
"start": "<string>"
}
]
}{
"error": {
"code": "invalid_request",
"message": "..."
}
}{
"error": {
"code": "invalid_token",
"message": "..."
}
}{
"error": {
"code": "insufficient_scope",
"message": "..."
}
}{
"error": {
"code": "not_found",
"message": "..."
}
}{
"error": {
"code": "rate_limited",
"message": "..."
}
}{
"error": {
"code": "unavailable",
"message": "..."
}
}autophish
Read the AutoPhish weekly trend
Simulations delivered, opened, clicked and reported in each week of the last twelve months, oldest week first. It takes no period, and a week with no simulations is a row of zeros. No rate is given: divide clicked by delivered. A period goes by the day a simulation was sent, not the day it was acted on. Figures are as of now: a simulation’s result is final a week after it is sent, so a recent period is still moving. Rates are over simulations delivered, and are null, not zero, when none was.
Read the AutoPhish weekly trend
curl --request GET \
--url https://api.cimento.app/v1/autophish/trend \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.cimento.app/v1/autophish/trend"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.cimento.app/v1/autophish/trend', 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.cimento.app/v1/autophish/trend",
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: Bearer <token>"
],
]);
$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.cimento.app/v1/autophish/trend"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.cimento.app/v1/autophish/trend")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cimento.app/v1/autophish/trend")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"points": [
{
"clicked": 123,
"delivered": 123,
"opened": 123,
"reported": 123,
"start": "<string>"
}
]
}{
"error": {
"code": "invalid_request",
"message": "..."
}
}{
"error": {
"code": "invalid_token",
"message": "..."
}
}{
"error": {
"code": "insufficient_scope",
"message": "..."
}
}{
"error": {
"code": "not_found",
"message": "..."
}
}{
"error": {
"code": "rate_limited",
"message": "..."
}
}{
"error": {
"code": "unavailable",
"message": "..."
}
}