Inkomba · Ama-TV

Bonisa i-TV eyodwa

GET /v1/tvs/{uid}

Ibonisa i-TV eyodwa ngokwe-uid yayo.

Ipharamitha esendleleni

IgamaUhloboIncazelo
uidstringI-uid ye-TV.

Izinkambu zempendulo

uid string
Isihlonzi se-TV, esifanayo nesisetshenziswa ephanelini yokulawula.
name string
Igama le-TV.
description string
Incazelo ye-TV (ingaba ngenalutho).
organization object
Inhlangano ye-TV: uid ne-name.
playlist object | null
Uhlu lokudlala lwe-TV (uid ne-name), noma null uma lungekho.
status string
online, alert noma offline, njengoba kuchazwe ngezansi.
last_seen_at string | null
Ukuxhumana kokugcina kwe-TV nenkundla, noma null uma ingakaze ixhume.
activated_at string | null
Isikhathi i-TV eyenziwe yasebenza ngaso.
app_version string
Inguqulo ye-app efakwe ku-TV.
os string
Isistimu yokusebenza ye-TV, njenge-android.
device object
Uphawu (brand) nemodeli (model) yedivayisi, uma i-TV iyibika.
timezone string | null
Indawo yesikhathi ye-TV, njenge-America/Sao_Paulo, noma null.

Indlela isimo esibalwa ngayo

  • online ukuxhumana kungaphansi kwemizuzu emi-3 edlule, iyadlala
  • alert ukuxhumana phakathi kwemizuzu emi-3 nemi-9 edlule, noma i-TV isaqala
  • offline akukho kuxhumana imizuzu eyi-10 noma ngaphezulu, noma ayikaze ixhume

Kungumthetho ofanayo nowemibala yesimo ephanelini yokulawula.

Amaphutha angenzeka

  • 404 not_found I-endpoint ayikho, noma into ayikho noma ingeyenhlangano umsebenzisi angakwazi ukuyibona.
  • Amaphutha okhiye nawomkhawulo asebenza kuwo wonke ama-endpoint. Bona wonke amaphutha
Isicelo
curl "https://api.on-cloud.live/v1/tvs/c98cb8f9cc62887d1f6cf5693df9219c" \
  -H "X-API-Key: $API_KEY"
<?php
$ch = curl_init('https://api.on-cloud.live/v1/tvs/c98cb8f9cc62887d1f6cf5693df9219c');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ['X-API-Key: ' . getenv('API_KEY')],
]);
$response = json_decode(curl_exec($ch), true);
const res = await fetch('https://api.on-cloud.live/v1/tvs/c98cb8f9cc62887d1f6cf5693df9219c', {
  headers: { 'X-API-Key': process.env.API_KEY }
});
const { data } = await res.json();
Impendulo200
{
  "data": {
    "uid": "c98cb8f9cc62887d1f6cf5693df9219c",
    "name": "Recepção",
    "description": "TV da entrada",
    "organization": {
      "uid": "8f14e45fceea167a5a36dedd4bea2543",
      "name": "Loja Centro"
    },
    "playlist": {
      "uid": "e4da3b7fbbce2345d7772b0674a318d5",
      "name": "Lista principal"
    },
    "status": "online",
    "last_seen_at": "2026-11-03T14:32:10-03:00",
    "activated_at": "2025-03-12T09:41:05-03:00",
    "app_version": "3.12.84",
    "os": "android",
    "device": {
      "brand": "TCL",
      "model": "43P635"
    },
    "timezone": "America/Sao_Paulo"
  }
}
Into engekho noma engenakufinyelela404
{
  "error": {
    "code": "not_found",
    "message": "Item not found or you do not have access to it."
  }
}