execute() 공개 메소드

public execute ( ) : UserTagsFeedResponse
리턴 Instagram\API\Response\UserTagsFeedResponse
예제 #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;
 }