execute() public méthode

public execute ( ) : InfoMediaResponse
Résultat Instagram\API\Response\InfoMediaResponse
 /**
  *
  * Get Media Info
  *
  * @param string|API\Response\Model\FeedItem $mediaId FeedItem or FeedItem Id to get Info of
  * @return API\Response\InfoMediaResponse
  * @throws Exception
  */
 public function getMediaInfo($mediaId)
 {
     if (!$this->isLoggedIn()) {
         throw new InstagramException("You must be logged in to call getMediaInfo().");
     }
     if ($mediaId instanceof FeedItem) {
         $mediaId = $mediaId->getPk();
     }
     $request = new InfoMediaRequest($this, $mediaId);
     $response = $request->execute();
     if (!$response->isOk()) {
         throw new InstagramException(sprintf("Failed to getMediaInfo: [%s] %s", $response->getStatus(), $response->getMessage()));
     }
     return $response;
 }
 /**
  *
  * Get Media Info
  *
  * @param string|API\Response\Model\FeedItem $mediaId FeedItem or FeedItem Id to get Info of
  * @return API\Response\InfoMediaResponse
  * @throws Exception
  */
 public function getMediaInfo($mediaId)
 {
     if (!$this->isLoggedIn()) {
         throw new InstagramException("You must be logged in to call getMediaInfo().");
     }
     if ($mediaId instanceof FeedItem) {
         $mediaId = $mediaId->getPk();
     }
     $request = new InfoMediaRequest($this, $mediaId);
     $response = $request->execute();
     return $response;
 }