original_string: 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);
          }
      }
code: 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);
          }
      }
code_tokens: 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 ) ; } }
docstring: 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
docstring_tokens: Gets an existing video by it s key .