/**
* Get following info for pinner.
*
* @param string $username
* @param string $type
* @param int $limit
* @return Iterator
* @throws WrongFollowingType
*/
public function following($username, $type = UrlBuilder::FOLLOWING_PEOPLE, $limit = Pagination::DEFAULT_LIMIT)
{
$followingUrl = UrlBuilder::getFollowingUrlByType($type);
if (empty($followingUrl)) {
throw new WrongFollowingType("No following results for {$type}");
}
return $this->paginate($username, $followingUrl, $limit);
}