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