TAŇBA-OOH Әзірлеушілерге

Registry of certified player models (served at /certified on the verify host)

GET /v1/certified

https://verify.tanba-ooh.kz/v1/certified

Анықтамалықтың техникалық мәтіні ағылшын тілінде жазылған.

Lists the models that hold a valid certificate of the certification lab, and nothing else. Send Accept of application/json (or ?format=json) for JSON, anything else gets the HTML page. Cached for 60 seconds.

Аутентификация

Қажет емес. Шақыру ашық.

Параметрлер

АтауыОрныТүріМіндеттіСипаттамаМысал
formatсұрауstringжоқSet to json to get JSON instead of the page or the signed file. jsonjson

Жауаптар

200 The valid certificates.

application/json

АтауыТүріМіндеттіСипаттамаМысал
itemsarray of objectиәThe valid certificates.
items[].vendorstringиәManufacturer of the player model."Example Devices"
items[].modelstringиәName of the model."XP-100"
items[].classstringиәClass the certificate was issued for (a player model), or the level (a CMS product). A, B, C, C1, C2
items[].spec_versionstringиәVersion of the conformance specification the model was tested against."1.0"
items[].valid_untilstring (date)иәLast day the certificate is valid."2027-06-30"

Мысал

{
  "items": [
    {
      "vendor": "Example Devices",
      "model": "XP-100",
      "class": "A",
      "spec_version": "1.0",
      "valid_until": "2027-06-30"
    }
  ]
}

text/html

Қателер

Қателер problem құжаты (application/problem+json) түрінде, тұрақты code өрісімен келеді.

МәртебесіМағынасы
429Rate limit; see Retry-After.

Код мысалдары

curl

curl 'https://verify.tanba-ooh.kz/v1/certified' \
  -H 'Accept: application/json'
Python
import requests

response = requests.get(
    "https://verify.tanba-ooh.kz/v1/certified",
    headers={
        "Accept": "application/json",
    },
)
print(response.status_code, response.text)
Go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, err := http.NewRequest("GET", "https://verify.tanba-ooh.kz/v1/certified", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("Accept", "application/json")
	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()
	data, _ := io.ReadAll(resp.Body)
	fmt.Println(resp.Status, string(data))
}