Retrieve the latest announcement
curl --request GET \
--url https://v3.minestorecms.com/api/announcement/getimport requests
url = "https://v3.minestorecms.com/api/announcement/get"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://v3.minestorecms.com/api/announcement/get', 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://v3.minestorecms.com/api/announcement/get",
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 := "https://v3.minestorecms.com/api/announcement/get"
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("https://v3.minestorecms.com/api/announcement/get")
.asString();require 'uri'
require 'net/http'
url = URI("https://v3.minestorecms.com/api/announcement/get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"title": "New Update Available",
"content": "We have released a new update for our platform.",
"button_name": "Read More",
"button_url": "https://example.com/update",
"is_index": true
}CMS Endpoints
Announcements
Fetch the latest announcement that is marked as an index announcement.
GET
/
announcement
/
get
Retrieve the latest announcement
curl --request GET \
--url https://v3.minestorecms.com/api/announcement/getimport requests
url = "https://v3.minestorecms.com/api/announcement/get"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://v3.minestorecms.com/api/announcement/get', 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://v3.minestorecms.com/api/announcement/get",
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 := "https://v3.minestorecms.com/api/announcement/get"
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("https://v3.minestorecms.com/api/announcement/get")
.asString();require 'uri'
require 'net/http'
url = URI("https://v3.minestorecms.com/api/announcement/get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"title": "New Update Available",
"content": "We have released a new update for our platform.",
"button_name": "Read More",
"button_url": "https://example.com/update",
"is_index": true
}Response
OK
The title of the announcement
The content of the announcement
The name of the button associated with the announcement. Could be empty
The URL that the button points to. Could be empty
Indicates whether the announcement is set as an index announcement
⌘I

