/**
  *  Lists the briefs under a particular feed.
  *
  * @param int feedId
  * @param int $offset offset to skip
  * @param int $limit The limit to apply to the list (maximum 100)
  * @param array $properties array of properties to add to querystring
  * @param array $fields array of fields to add to querystring
  * @returnBriefList
  */
 private function ListBriefsForFeed($feedId, $offset, $limit, $properties, $fields)
 {
     $uri = $this->GetUri($feedId, "feedId", "xml", $properties, $fields, $offset, $limit);
     $uri = "http://" . $this->credentials->getPublicKey() . ":" . $this->credentials->getSecretKey() . "@" . str_replace("http://", "", $uri);
     $xmlString = AdferoHelpers::GetXMLFromUri($uri);
     $briefs = $this->ListBriefsFromXmlString($xmlString);
     $briefs->limit = $limit;
     $briefs->offset = $offset;
     return $briefs;
 }
 /**
  * Gets the video player with the provided id 
  *
  * @param int $articleId Id of the article from which to get the video player
  * @param Players $playerName Name of the player to display embed code for
  * @param Version $playerVersion Version of the player to display embed code for
  * @param Players $fallbackPlayerName Name of the fallback player to display embed code for if the primary player isn't supported by the browser
  * @param Version $fallbackPlayerVersion Version of the fallback player to display embed code for if the primary player isn't supported by the browser
  * @param array $properties array of properties to add to querystring
  * @param array $fields array of fields to add to querystring
  * @return AdferoVideoPlayer
  */
 private function GetVideoPlayerWithFallback($articleId, $playerName, $playerVersion, $fallbackPlayerName, $fallbackPlayerVersion, $properties, $fields)
 {
     $uri = $this->GetUri($articleId, $playerName, $playerVersion, $fallbackPlayerName, $fallbackPlayerVersion, "xml", $properties, $fields);
     $uri = "http://" . $this->credentials->getPublicKey() . ":" . $this->credentials->getSecretKey() . "@" . str_replace("http://", "", $uri);
     $xmlString = AdferoHelpers::GetXMLFromUri($uri);
     return $this->GetVideoPlayerFromXmlString($xmlString);
 }
 /**
  *  Lists the video outputs under a particular article.
  *
  * @param int articleId
  * @param int $offset offset to skip
  * @param int $limit The limit to apply to the list (maximum 100)
  * @param array $properties array of properties to add to querystring
  * @param array $array of fields to add to querystring
  * @return AdferoVideoOutputList 
  */
 private function ListVideoOutputsForArticle($articleId, $offset, $limit, $properties, $fields)
 {
     $uri = $this->GetUri($articleId, "articleId", "xml", $properties, $fields, $offset, $limit);
     $uri = "http://" . $this->credentials->getPublicKey() . ":" . $this->credentials->getSecretKey() . "@" . str_replace("http://", "", $uri);
     $xmlString = AdferoHelpers::GetXMLFromUri($uri);
     $videoOutputs = $this->ListVideoOutputsFromXmlString($xmlString);
     $videoOutputs->limit = $limit;
     $videoOutputs->offset = $offset;
     return $videoOutputs;
 }
 /**
  * Gets the article with the provided id 
  *
  * @param int $id
  * @param array $properties array of properties to add to querystring
  * @param array $fields array of fields to add to querystring
  * @return AdferoArticleList 
  */
 private function GetArticle($id, $properties, $fields)
 {
     $uri = $this->GetUri($id, null, "xml", $properties, $fields, null, null);
     $uri = "http://" . $this->credentials->getPublicKey() . ":" . $this->credentials->getSecretKey() . "@" . str_replace("http://", "", $uri);
     $xmlString = AdferoHelpers::GetXMLFromUri($uri);
     return $this->GetArticleFromXmlString($xmlString);
 }