1 | <?php |
||
37 | class ApiProvider extends AbstractProvider { |
||
38 | |||
39 | /** |
||
40 | * Before return a response. |
||
41 | * |
||
42 | * @param AbstractResponse $response The response. |
||
43 | * @return AbstractResponse Returns the response. |
||
44 | */ |
||
45 | protected function beforeReturnResponse(AbstractResponse $response) { |
||
53 | |||
54 | /** |
||
55 | * Curated photos. |
||
56 | * |
||
57 | * @param CuratedPhotosRequest $curatedPhotosRequest The curated photos request. |
||
58 | * @return PhotosResponse Returns the photos response. |
||
59 | * @throws ApiException Throws an API exception if an error occurs. |
||
60 | * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. |
||
61 | */ |
||
62 | public function curatedPhotos(CuratedPhotosRequest $curatedPhotosRequest) { |
||
70 | |||
71 | /** |
||
72 | * Get a photo. |
||
73 | * |
||
74 | * @param GetPhotoRequest $getPhotoRequest The get photo request. |
||
75 | * @return PhotoResponse Returns the photo response. |
||
76 | * @throws ApiException Throws an API exception if an error occurs. |
||
77 | * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. |
||
78 | */ |
||
79 | public function getPhoto(GetPhotoRequest $getPhotoRequest) { |
||
85 | |||
86 | /** |
||
87 | * Get a video. |
||
88 | * |
||
89 | * @param GetVideoRequest $getVideoRequest The get video request. |
||
90 | * @return VideoResponse Returns the video response. |
||
91 | * @throws ApiException Throws an API exception if an error occurs. |
||
92 | * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. |
||
93 | */ |
||
94 | public function getVideo(GetVideoRequest $getVideoRequest) { |
||
100 | |||
101 | /** |
||
102 | * Next page. |
||
103 | * |
||
104 | * @param PaginateResponseInterface $paginateResponse The response. |
||
105 | * @return ImagesResponse|VideosResponse Returns the response. |
||
106 | * @throws ApiException Throws an API exception if an error occurs. |
||
107 | * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. |
||
108 | */ |
||
109 | public function nextPage(PaginateResponseInterface $paginateResponse) { |
||
119 | |||
120 | /** |
||
121 | * Popular videos. |
||
122 | * |
||
123 | * @param PopularVideosRequest $popularVideosRequest The popular videos request. |
||
124 | * @return VideosResponse Returns the videos response. |
||
125 | * @throws ApiException Throws an API exception if an error occurs. |
||
126 | * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. |
||
127 | */ |
||
128 | public function popularVideos(PopularVideosRequest $popularVideosRequest) { |
||
136 | |||
137 | /** |
||
138 | * Prev page. |
||
139 | * |
||
140 | * @param PaginateResponseInterface $paginateResponse The response. |
||
141 | * @return ImagesResponse|VideosResponse Returns the response. |
||
142 | * @throws ApiException Throws an API exception if an error occurs. |
||
143 | * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. |
||
144 | */ |
||
145 | public function prevPage(PaginateResponseInterface $paginateResponse) { |
||
155 | |||
156 | /** |
||
157 | * Search photos. |
||
158 | * |
||
159 | * @param SearchPhotosRequest $searchPhotosRequest The search photos request. |
||
160 | * @return PhotosResponse Returns the photo response. |
||
161 | * @throws ApiException Throws an API exception if an error occurs. |
||
162 | * @throws InvalidArgumentException Throws an invalid argument exception if a mandatory parameter is missing. |
||
163 | */ |
||
164 | public function searchPhotos(SearchPhotosRequest $searchPhotosRequest) { |
||
172 | |||
173 | /** |
||
174 | * Search videos. |
||
175 | * |
||
176 | * @param SearchVideosRequest $searchVideosRequest The search videos request. |
||
177 | * @return VideosResponse Returns the videos response. |
||
178 | * @throws ApiException Throws an API exception if an error occurs. |
||
179 | * @throws InvalidArgumentException Throws an invalid argument exception if a mandatory parameter is missing. |
||
180 | */ |
||
181 | public function searchVideos(SearchVideosRequest $searchVideosRequest) { |
||
189 | } |
||
190 |