Skip to content

Commit

Permalink
test doc syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
User123698745 committed Sep 10, 2023
1 parent 1cf1d09 commit afbbb3b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions bridges/TwitchBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit afbbb3b

Please sign in to comment.