상속: extends AuthenticatedBaseRequest
예제 #1
0
 /**
  *
  * Fetch Tag Feed
  *
  * @param string $tag Tag
  * @param string $maxId Next Maximum Id, used for Pagination
  * @return API\Response\TagFeedResponse
  * @throws Exception
  */
 public function getTagFeed($tag, $maxId = null)
 {
     if (!$this->isLoggedIn()) {
         throw new InstagramException("You must be logged in to call getTagFeed().");
     }
     $request = new TagFeedRequest($this, $tag, $maxId);
     $response = $request->execute();
     if (!$response->isOk()) {
         throw new InstagramException(sprintf("Failed to getTagFeed: [%s] %s", $response->getStatus(), $response->getMessage()));
     }
     return $response;
 }
 /**
  *
  * Fetch Tag Feed
  *
  * @param string $tag Tag
  * @param string $maxId Next Maximum Id, used for Pagination
  * @return API\Response\TagFeedResponse
  * @throws Exception
  */
 public function getTagFeed($tag, $maxId = null)
 {
     if (!$this->isLoggedIn()) {
         throw new InstagramException("You must be logged in to call getTagFeed().");
     }
     $request = new TagFeedRequest($this, $tag, $maxId);
     $response = $request->execute();
     return $response;
 }