src/Video/VideoClient.php
public function find($videoKey) {
        if(is_null($videoKey) || empty($videoKey)) {
            throw new VideoClientException("A key is needed to fnd a video");
        }

        try {
            // Request the video from the SafeStream REST API
            $videos = $this->get(sprintf("%s?key=%s", $this->apiResourcePath, $videoKey));

            return $videos[0];
        } catch (SafeStreamHttpException $e) {
            throw new VideoClientException($e);
        }
    }
public function find($videoKey) {
        if(is_null($videoKey) || empty($videoKey)) {
            throw new VideoClientException("A key is needed to fnd a video");
        }

        try {
            // Request the video from the SafeStream REST API
            $videos = $this->get(sprintf("%s?key=%s", $this->apiResourcePath, $videoKey));

            return $videos[0];
        } catch (SafeStreamHttpException $e) {
            throw new VideoClientException($e);
        }
    }
public function find ( $ videoKey ) { if ( is_null ( $ videoKey ) || empty ( $ videoKey ) ) { throw new VideoClientException ( "A key is needed to fnd a video" ) ; } try { // Request the video from the SafeStream REST API $ videos = $ this -> get ( sprintf ( "%s?key=%s" , $ this -> apiResourcePath , $ videoKey ) ) ; return $ videos [ 0 ] ; } catch ( SafeStreamHttpException $ e ) { throw new VideoClientException ( $ e ) ; } }
Gets an existing video by it's key.

@param $videoKey: If no key was passed in when creating the video then the key will be the
source URL of the video
@return mixed: An existing video {@link Video}
@throws VideoClientException
Gets an existing video by it s key .