Skip to content

Commit

Permalink
Adding some missing @throws annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Ursenbach committed Mar 7, 2018
1 parent bc097b6 commit 9559af9
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/Vimeo/Vimeo.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public function __construct($client_id, $client_secret, $access_token = null)
* @param bool $json_body
* @param array $headers An array of HTTP headers to pass along with the request.
* @return array This array contains three keys, 'status' is the status code, 'body' is an object representation of the json response body, and headers are an associated array of response headers
* @throws VimeoRequestException
*/
public function request($url, $params = array(), $method = 'GET', $json_body = true, array $headers = array())
{
Expand Down Expand Up @@ -274,8 +275,9 @@ public function buildAuthorizationEndpoint($redirect_uri, $scope = 'public', $st
* @link https://developer.vimeo.com/api/endpoints/videos#POST/users/{user_id}/videos
* @param string $file_path Path to the video file to upload.
* @param array $params Parameters to send when creating a new video (name, privacy restrictions, etc.).
* @throws VimeoUploadException
* @return string Video URI
* @throws VimeoRequestException
* @throws VimeoUploadException
*/
public function upload($file_path, array $params = array())
{
Expand Down Expand Up @@ -317,8 +319,9 @@ public function upload($file_path, array $params = array())
* @link https://developer.vimeo.com/api/endpoints/videos#POST/videos/{video_id}/versions
* @param string $video_uri Video uri of the video file to replace.
* @param string $file_path Path to the video file to upload.
* @throws VimeoUploadException
* @return string Video URI
* @throws VimeoRequestException
* @throws VimeoUploadException
*/
public function replace($video_uri, $file_path, array $params = array())
{
Expand Down Expand Up @@ -356,8 +359,9 @@ public function replace($video_uri, $file_path, array $params = array())
* @param string $pictures_uri The pictures endpoint for a resource that allows picture uploads (eg videos and users)
* @param string $file_path The path to your image file
* @param boolean $activate Activate image after upload
* @throws VimeoUploadException
* @return string The URI of the uploaded image.
* @throws VimeoRequestException
* @throws VimeoUploadException
*/
public function uploadImage($pictures_uri, $file_path, $activate = false)
{
Expand Down Expand Up @@ -415,8 +419,9 @@ public function uploadImage($pictures_uri, $file_path, $activate = false)
* @param string $file_path The path to your text track file
* @param string $track_type The type of your text track
* @param string $language The language of your text track
* @throws VimeoUploadException
* @return string The URI of the uploaded text track.
* @throws VimeoRequestException
* @throws VimeoUploadException
*/
public function uploadTexttrack($texttracks_uri, $file_path, $track_type, $language)
{
Expand Down Expand Up @@ -472,6 +477,7 @@ public function uploadTexttrack($texttracks_uri, $file_path, $track_type, $langu
* @param string $url
* @param array $curl_opts
* @return array
* @throws VimeoRequestException
*/
private function _request($url, $curl_opts = array())
{
Expand Down

0 comments on commit 9559af9

Please sign in to comment.