سرد الإعلانات
curl --request GET \
--url https://api.truthlocks.com/v1/messages \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/messages"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/messages"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"items": [
{
"id": "<string>",
"subject": "<string>",
"body": "<string>",
"priority": "NORMAL",
"is_read": true,
"created_at": "<string>"
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}الإعلانات
سرد الإعلانات
استرداد إعلانات المنصة لمستأجرك.
GET
/
v1
/
messages
سرد الإعلانات
curl --request GET \
--url https://api.truthlocks.com/v1/messages \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.truthlocks.com/v1/messages', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.truthlocks.com/v1/messages"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.truthlocks.com/v1/messages"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"items": [
{
"id": "<string>",
"subject": "<string>",
"body": "<string>",
"priority": "NORMAL",
"is_read": true,
"created_at": "<string>"
}
]
}{
"code": "AUTH_REQUIRED",
"message": "Authentication required",
"http_status": 401
}يُرجع جميع الإعلانات المرسلة إلى مستأجرك بواسطة منصة Truthlocks. تتضمن الإعلانات تحديثات النظام، وتنبيهات الأمان، والإشعارات التشغيلية.
يمكنك أيضًا عرض الإعلانات في وحدة التحكم. راجع دليل إعداد وحدة التحكم للحصول على تفاصيل حول صندوق الوارد للإعلانات.
الاستجابات
مستويات أولوية الإعلان
| الأولوية | الوصف |
|---|---|
NORMAL | تحديثات المنصة العامة والرسائل المعلوماتية. |
URGENT | التغييرات الحساسة للوقت التي قد تؤثر على سير عملك. |
CRITICAL | تنبيهات أمنية أو انقطاعات في الخدمة تتطلب اهتمامًا فوريًا. |

