1 | <?php |
||
27 | class Redtube |
||
28 | { |
||
29 | |||
30 | /** |
||
31 | * Category endpoint |
||
32 | * |
||
33 | * @var CategoryEndpoint $categories |
||
34 | */ |
||
35 | public $categories; |
||
36 | |||
37 | /** |
||
38 | * Video endpoint |
||
39 | * |
||
40 | * @var VideoEndpoint $videos |
||
41 | */ |
||
42 | public $videos; |
||
43 | |||
44 | /** |
||
45 | * Star endpoint |
||
46 | * |
||
47 | * @var StarEndpoint $stars |
||
48 | */ |
||
49 | public $stars; |
||
50 | |||
51 | /** |
||
52 | * Tag endpoint |
||
53 | * |
||
54 | * @var TagEndpoint $tags |
||
55 | */ |
||
56 | public $tags; |
||
57 | |||
58 | /** |
||
59 | * Prepare serializer |
||
60 | * |
||
61 | * @return \JMS\Serializer\Serializer |
||
62 | */ |
||
63 | private function prepareSerializer() |
||
86 | |||
87 | /** |
||
88 | * Create new Redtube API client |
||
89 | * |
||
90 | * @param string $host |
||
91 | */ |
||
92 | public function __construct($host = 'https://api.redtube.com') |
||
105 | |||
106 | } |
||
107 |