What's new in a portal's brand
curl --request GET \
--url http://localhost:3000/api/v1/portal/{slug}/updatesimport requests
url = "http://localhost:3000/api/v1/portal/{slug}/updates"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:3000/api/v1/portal/{slug}/updates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/portal/{slug}/updates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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 := "http://localhost:3000/api/v1/portal/{slug}/updates"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:3000/api/v1/portal/{slug}/updates")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/portal/{slug}/updates")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"version": 0,
"publishedAt": "2023-11-07T05:31:56Z",
"publishedBy": "<string>",
"note": "<string>",
"image": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"changes": {
"rules": {
"added": [
"<string>"
],
"changed": [
"<string>"
],
"removed": [
"<string>"
]
},
"pages": {
"added": [
{
"slug": "<string>",
"title": "<string>"
}
],
"changed": [
{
"slug": "<string>",
"title": "<string>"
}
],
"removed": [
{
"slug": "<string>",
"title": "<string>"
}
]
}
}
}
],
"media": {}
}{
"error": {
"code": "password",
"message": "<string>",
"detail": {
"name": "<string>",
"access": "password",
"theme": {
"logo": "<string>",
"accent": "<string>",
"background": "<string>",
"icon": "<string>",
"product": "<string>"
}
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"detail": "<unknown>"
}
}API Reference
What's new in a portal's brand
One of its brands’ latest publishes, newest first, up to 20, with what each changed for readers. A publish’s picture is in media, signed, while it may be used.
No key needed.
GET
/
api
/
v1
/
portal
/
{slug}
/
updates
What's new in a portal's brand
curl --request GET \
--url http://localhost:3000/api/v1/portal/{slug}/updatesimport requests
url = "http://localhost:3000/api/v1/portal/{slug}/updates"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:3000/api/v1/portal/{slug}/updates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/api/v1/portal/{slug}/updates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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 := "http://localhost:3000/api/v1/portal/{slug}/updates"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://localhost:3000/api/v1/portal/{slug}/updates")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/api/v1/portal/{slug}/updates")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": [
{
"version": 0,
"publishedAt": "2023-11-07T05:31:56Z",
"publishedBy": "<string>",
"note": "<string>",
"image": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"changes": {
"rules": {
"added": [
"<string>"
],
"changed": [
"<string>"
],
"removed": [
"<string>"
]
},
"pages": {
"added": [
{
"slug": "<string>",
"title": "<string>"
}
],
"changed": [
{
"slug": "<string>",
"title": "<string>"
}
],
"removed": [
{
"slug": "<string>",
"title": "<string>"
}
]
}
}
}
],
"media": {}
}{
"error": {
"code": "password",
"message": "<string>",
"detail": {
"name": "<string>",
"access": "password",
"theme": {
"logo": "<string>",
"accent": "<string>",
"background": "<string>",
"icon": "<string>",
"product": "<string>"
}
}
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"detail": "<unknown>"
}
}