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. json | json |
Жауаптар
200 The valid certificates.
application/json
| Атауы | Түрі | Міндетті | Сипаттама | Мысал |
|---|---|---|---|---|
items | array of object | иә | The valid certificates. | |
items[].vendor | string | иә | Manufacturer of the player model. | "Example Devices" |
items[].model | string | иә | Name of the model. | "XP-100" |
items[].class | string | иә | Class the certificate was issued for (a player model), or the level (a CMS product). A, B, C, C1, C2 | |
items[].spec_version | string | иә | Version of the conformance specification the model was tested against. | "1.0" |
items[].valid_until | string (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 өрісімен келеді.
| Мәртебесі | Мағынасы |
|---|---|
| 429 | Rate 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))
}