Skip to content

Commit 5292acb

Browse files
Brandinnicklaw5
andauthored
Added Bearer for getStreamForUserId and getStreamForUsername (#56)
* Added OAuth Token (optional) to Helix Streams API * Revert "Added OAuth Token (optional) to Helix Streams API" This reverts commit f4794da. * Added OAuth Token (optional) to Helix Streams API * Migrate to travis-ci.com * Added OAuth Token (optional) to Helix Streams API * Revert "Added OAuth Token (optional) to Helix Streams API" This reverts commit f4794da. * Added OAuth Token (optional) to Helix Streams API Co-authored-by: Nick Law <[email protected]>
1 parent f4ec638 commit 5292acb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/NewTwitchApi/Resources/StreamsApi.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ class StreamsApi extends AbstractResource
1212
/**
1313
* @throws GuzzleException
1414
*/
15-
public function getStreamForUserId(string $userId): ResponseInterface
15+
public function getStreamForUserId(string $userId, string $bearer = null): ResponseInterface
1616
{
17-
return $this->getStreams([$userId]);
17+
return $this->getStreams([$userId], [], [], [], [], null, null, null, $bearer);
1818
}
1919

2020
/**
2121
* @throws GuzzleException
2222
*/
23-
public function getStreamForUsername(string $username): ResponseInterface
23+
public function getStreamForUsername(string $username, string $bearer = null): ResponseInterface
2424
{
25-
return $this->getStreams([], [$username]);
25+
return $this->getStreams([], [$username], [], [], [], null, null, null, $bearer);
2626
}
2727

2828
/**

0 commit comments

Comments
 (0)