@@ 24-32 (lines=9) @@ | ||
21 | * @param array $otherParameters |
|
22 | * @return array |
|
23 | */ |
|
24 | public function listById($id, array $parts = ['snippet'], array $otherParameters = []) |
|
25 | { |
|
26 | $parameters = array_merge( |
|
27 | ['part' => implode(',', $parts), 'id' => $id], |
|
28 | $otherParameters |
|
29 | ); |
|
30 | ||
31 | return $this->get(static::URL, $parameters); |
|
32 | } |
|
33 | ||
34 | /** |
|
35 | * Get automatically only the video data array |
|
@@ 59-68 (lines=10) @@ | ||
56 | * @param array $otherParameters |
|
57 | * @return array |
|
58 | */ |
|
59 | public function listBy(array $filters, array $parts = ['snippet'], array $otherParameters = []) |
|
60 | { |
|
61 | $parameters = array_merge( |
|
62 | ['part' => implode(',', $parts)], |
|
63 | $filters, |
|
64 | $otherParameters |
|
65 | ); |
|
66 | ||
67 | return $this->get(static::URL, $parameters); |
|
68 | } |
|
69 | } |
|
70 |