1 | <?php |
||
36 | class APIProvider extends AbstractProvider { |
||
37 | |||
38 | /** |
||
39 | * Before return a response. |
||
40 | * |
||
41 | * @param AbstractResponse $response The response. |
||
42 | * @return AbstractResponse Returns the response. |
||
43 | */ |
||
44 | protected function beforeReturnResponse(AbstractResponse $response) { |
||
52 | |||
53 | /** |
||
54 | * Curated photos. |
||
55 | * |
||
56 | * @param CuratedPhotosRequest $curatedPhotosRequest The curated photos request. |
||
57 | * @return PhotosResponse Returns the photos response. |
||
58 | * @throws APIException Throws an API exception if an error occurs. |
||
59 | */ |
||
60 | 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 | */ |
||
78 | public function getPhoto(GetPhotoRequest $getPhotoRequest) { |
||
86 | |||
87 | /** |
||
88 | * Get a video. |
||
89 | * |
||
90 | * @param GetVideoRequest $getVideoRequest The get video request. |
||
91 | * @return VideoResponse Returns the video response. |
||
92 | * @throws APIException Throws an API exception if an error occurs. |
||
93 | */ |
||
94 | public function getVideo(GetVideoRequest $getVideoRequest) { |
||
102 | |||
103 | /** |
||
104 | * Popular videos. |
||
105 | * |
||
106 | * @param PopularVideosRequest $popularVideosRequest The popular videos request. |
||
107 | * @return VideosResponse Returns the videos response. |
||
108 | * @throws APIException Throws an API exception if an error occurs. |
||
109 | */ |
||
110 | public function popularVideos(PopularVideosRequest $popularVideosRequest) { |
||
120 | |||
121 | /** |
||
122 | * Search photos. |
||
123 | * |
||
124 | * @param SearchPhotosRequest $searchPhotosRequest The search photos request. |
||
125 | * @return PhotosResponse Returns the photo response. |
||
126 | * @throws APIException Throws an API exception if an error occurs. |
||
127 | * @throws InvalidArgumentException Throws an invalid argument exception if a mandatory parameter is missing. |
||
128 | */ |
||
129 | public function searchPhotos(SearchPhotosRequest $searchPhotosRequest) { |
||
139 | |||
140 | /** |
||
141 | * Search videos. |
||
142 | * |
||
143 | * @param SearchVideosRequest $searchVideosRequest The search videos request. |
||
144 | * @return VideosResponse Returns the videos response. |
||
145 | * @throws APIException Throws an API exception if an error occurs. |
||
146 | * @throws InvalidArgumentException Throws an invalid argument exception if a mandatory parameter is missing. |
||
147 | */ |
||
148 | public function searchVideos(SearchVideosRequest $searchVideosRequest) { |
||
158 | } |
||
159 |