/** * * Fetch Location Feed * * @param string|API\Response\Model\Location $locationId Location or Location Id to get Feed of * @param string $maxId Next Maximum Id, used for Pagination * @return API\Response\LocationFeedResponse * @throws Exception */ public function getLocationFeed($locationId, $maxId = null) { if (!$this->isLoggedIn()) { throw new InstagramException("You must be logged in to call getLocationFeed()."); } if ($locationId instanceof Location) { $locationId = $locationId->getPk(); } $request = new LocationFeedRequest($this, $locationId, $maxId); $response = $request->execute(); if (!$response->isOk()) { throw new InstagramException(sprintf("Failed to getLocationFeed: [%s] %s", $response->getStatus(), $response->getMessage())); } return $response; }
/** * * Fetch Location Feed * * @param string|API\Response\Model\Location $locationId Location or Location Id to get Feed of * @param string $maxId Next Maximum Id, used for Pagination * @return API\Response\LocationFeedResponse * @throws Exception */ public function getLocationFeed($locationId, $maxId = null) { if (!$this->isLoggedIn()) { throw new InstagramException("You must be logged in to call getLocationFeed()."); } if ($locationId instanceof Location) { $locationId = $locationId->getPk(); } $request = new LocationFeedRequest($this, $locationId, $maxId); $response = $request->execute(); return $response; }