Skip to content

Commit 7296feb

Browse files
authored
Add Get Stream Tags endpoint support (#72)
1 parent 79c7172 commit 7296feb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/NewTwitchApi/Resources/StreamsApi.php

+13
Original file line numberDiff line numberDiff line change
@@ -153,4 +153,17 @@ public function getChannelInfo(string $bearer, array $broadcasterIds): ResponseI
153153

154154
return $this->callApi('channels', $bearer, $queryParamsMap);
155155
}
156+
157+
/**
158+
* @throws GuzzleException
159+
* @link https://dev.twitch.tv/docs/api/reference#get-stream-tags
160+
*/
161+
public function getStreamTags(string $bearer, string $broadcasterId): ResponseInterface
162+
{
163+
$queryParamsMap = [];
164+
165+
$queryParamsMap[] = ['key' => 'broadcaster_id', 'value' => $broadcasterId];
166+
167+
return $this->callApi('streams/tags', $bearer, $queryParamsMap);
168+
}
156169
}

0 commit comments

Comments
 (0)