execute() public method

public execute ( ) : UserTagsFeedResponse
return Instagram\API\Response\UserTagsFeedResponse
Exemplo n.º 1
0
 /**
  *
  * Fetch User Tags Feed
  *
  * @param string|API\Response\Model\User $userId User of User Id to get Tags Feed of
  * @param string $maxId Next Maximum Id, used for Pagination
  * @return API\Response\UserTagsFeedResponse
  * @throws Exception
  */
 public function getUserTagsFeed($userId, $maxId = null)
 {
     if (!$this->isLoggedIn()) {
         throw new InstagramException("You must be logged in to call getUserTagsFeed().");
     }
     if ($userId instanceof User) {
         $userId = $userId->getPk();
     }
     $request = new UserTagsFeedRequest($this, $userId, $maxId);
     $response = $request->execute();
     if (!$response->isOk()) {
         throw new InstagramException(sprintf("Failed to getUserTagsFeed: [%s] %s", $response->getStatus(), $response->getMessage()));
     }
     return $response;
 }
 /**
  *
  * Fetch User Tags Feed
  *
  * @param string|API\Response\Model\User $userId User of User Id to get Tags Feed of
  * @param string $maxId Next Maximum Id, used for Pagination
  * @return API\Response\UserTagsFeedResponse
  * @throws Exception
  */
 public function getUserTagsFeed($userId, $maxId = null)
 {
     if (!$this->isLoggedIn()) {
         throw new InstagramException("You must be logged in to call getUserTagsFeed().");
     }
     if ($userId instanceof User) {
         $userId = $userId->getPk();
     }
     $request = new UserTagsFeedRequest($this, $userId, $maxId);
     $response = $request->execute();
     return $response;
 }