We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9bfd2c8 + 060f9aa commit db405e0Copy full SHA for db405e0
src/Api/Clips.php
@@ -11,22 +11,17 @@ trait Clips
11
/**
12
* Get a clip
13
*
14
- * @param string $channel
15
* @param string $slug
16
* @throws InvalidTypeException
17
* @return array|json
18
*/
19
- public function getClip($channel, $slug)
+ public function getClip($slug)
20
{
21
- if (!is_string($channel)) {
22
- throw new InvalidTypeException('Channel', 'string', gettype($channel));
23
- }
24
-
25
if (!is_string($slug)) {
26
throw new InvalidTypeException('Slug', 'string', gettype($slug));
27
}
28
29
- return $this->get(sprintf('clips/%s/%s', $channel, $slug));
+ return $this->get(sprintf('clips/%s', $slug));
30
31
32
0 commit comments