do {
$response = $insta_obj->hashtag->getFeed($tag_names[(int)$getRequestFollow['tag_state']], $rankToken, $maxId);
foreach ($response->getItems() as $item) {
$item = json_decode($item, true);
$insta_obj->people->follow($item['ranked_items'][$i]['user']['pk']);
}
$maxId = $response->getNextMaxId();
sleep(10);
if ($i == (int)$getRequestFollow['follow_counter'] + (int)$getSpeedFollow['follow_in_hour']) {
$maxId = null;
}
$i++;
} while ($maxId !== null);
我有两个错误
1 =未定义索引:rank_items
2 =致命错误:未捕获 InstagramAPI \ Exception \ NotFoundException:请求的资源不 存在。在 C:\ wamp64 \ www \ robot \ modal \ vendor \ mgp25 \ instagram-php \ src \ Client.php on 第491行(!)InstagramAPI \ Exception \ NotFoundException:请求 资源不存在。在 C:\ wamp64 \ www \ robot \ modal \ vendor \ mgp25 \ instagram-php \ src \ Client.php on 第491行