Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 1.19 KB

File metadata and controls

56 lines (44 loc) · 1.19 KB

Ingests

Function API Alias Description
Ingests::getIngestServers /ingests Gets the current status of all publicly available ingest servers

Ingests::getIngestServers

Gets the current status of all publicly available ingest servers.

Authentication Scopes

No authentication scopes needed

API Aliases

/ingests

Parameters

No parameters are supported by this endpoint.

Usage

Static

use \IBurn36360\TwitchInterface\Configuration;
use \IBurn36360\TwitchInterface\Modules\Ingests;

$ingestServers = Ingests::getIngestServers(new Configuration([
    'clientID' => 'Your Twitch ClientID'
]));

Object

use \IBurn36360\TwitchInterface\Twitch;
use \IBurn36360\TwitchInterface\Configuration;

$twitchClient = new Twitch(new Configuration([
    'clientID' => 'Your Twitch ClientID',
]));

$ingestServers = $twitchClient->api('/ingests');

Return Example

{
   "ingests": [{
      "_id": 24,
      "availability": 1.0,
      "default": false,
      "name": "EU: Amsterdam, NL",
      "url_template": "rtmp://live-ams.twitch.tv/app/{stream_key}"
   },
      ...
   ]
}