Instagram\Instagram::getTimelineFeed PHP Method

getTimelineFeed() public method

Fetch Timeline Feed
public getTimelineFeed ( string $maxId = null ) : TimelineFeedResponse
$maxId string Next Maximum Id, used for Pagination
return Instagram\API\Response\TimelineFeedResponse
    public function getTimelineFeed($maxId = null)
    {
        if (!$this->isLoggedIn()) {
            throw new InstagramException("You must be logged in to call getTimelineFeed().");
        }
        $request = new TimelineFeedRequest($this, $maxId);
        $response = $request->execute();
        if (!$response->isOk()) {
            throw new InstagramException(sprintf("Failed to getTimelineFeed: [%s] %s", $response->getStatus(), $response->getMessage()));
        }
        return $response;
    }