diff --git a/bridges/TwitchBridge.php b/bridges/TwitchBridge.php index c8bd932a23fe..6550cea3771f 100644 --- a/bridges/TwitchBridge.php +++ b/bridges/TwitchBridge.php @@ -45,6 +45,28 @@ class TwitchBridge extends BridgeAbstract 'premiere_upload' => 'PREMIERE_UPLOAD' ]; + private function test() + { + $endpoint = new GraphQLEndpoint('your URI'); + $query = new GraphQLQuery( + <<<'QUERY' + query GetItems($language: Language!, $count: Int, $something: String) { + items(language: $language) { + title + } + } + QUERY, + [ + 'count' => 42, + 'something' => 'else' + ] + ); + $dataEN = $endpoint->executeQuery($query, ['language' => 'en']); + $dataDE = $endpoint->executeQuery($query, ['language' => 'de']); + $items = array_merge($dataEN->items, $dataDE->items); + return $items; + } + public function collectData() { $channel = $this->getInput('channel');