Php 获取特定Instagram故事投票人的“max_id”

Php 获取特定Instagram故事投票人的“max_id”,php,instagram,instagram-api,instagramapi-mgp25,Php,Instagram,Instagram Api,Instagramapi Mgp25,我知道我可以使用以下参数接收故事数据和投票人数据: * @param string $storyId The story media item's ID in Instagram's internal format (ie "1542304813904481224_6112344004"). * @param string $pollId The poll ID in Instagram's internal format (ie "1795615968

我知道我可以使用以下参数接收故事数据和投票人数据:

* @param string      $storyId      The story media item's ID in Instagram's internal format (ie "1542304813904481224_6112344004").
* @param string      $pollId       The poll ID in Instagram's internal format (ie "17956159684032257").
* @param int         $votingOption Value that represents the voting option of the voter. 0 for the first option, 1 for the second option.
* @param string|null $maxId        Next "maximum ID", used for pagination.
我已经成功地从另一个调用中检索到
$storyId,$pollId,$votingOption
,并使用该结果作为
GetStoryPollVorters()
的参数,但是还有一个结果,如果没有它,我相信我无法检索所有投票者数据

当我提出上述要求时,每次投票最多会收到50条回复,但我知道(根据我在instagram官方应用程序中看到的情况)会有更多的回复

在同一个请求中,我得到了属性
more\u available:true
,这意味着还有更多,但是后面跟着属性
max\u id
,它是函数
getStoryPollInvestors()
的相同可选参数

我的问题是我想设置这个
max\u id
,但我不知道如何为每个故事投票选项获取
max\u id
。我已尝试通过代码查看该方法的基本内容,但我看到的是:

$request = $this->ig->request("media/{$storyId}/{$pollId}/story_poll_voters/")
            ->addParam('vote', $votingOption);

if ($maxId !== null) {
    $request->addParam('max_id', $maxId);
}
它只是请求中添加的一个参数,存储库中几乎没有文档,并且在其他功能(如Feed、Comments、Friends等)中具有熟悉的格式。因此,我尝试在线搜索的结果令人失望

我想知道是否有人知道如何——知道$storyId、$pollId和$voting选项——查询
max\u id
以请求所有选民数据


提前谢谢你

您试过查看吗?似乎您需要从以下位置获取
nextMaxId
$nextMaxId=$timelineFeed->getNextMaxId()。所以你可以在第二个请求中开始使用它。@S.E.Chahine,你能给我指一下repo吗?在那里我可以得到
getStoryPoll()
或者简单地给我指出一个API,该API被调用以获取投票人列表。您是否尝试过查看??似乎需要从以下位置获取
nextMaxId
$nextMaxId=$timelineFeed->getNextMaxId()。所以您可以在第二个请求中开始使用它。@S.E.Chahine,您能告诉我在哪里可以获取
GetStoryPollVorters()
,或者简单地告诉我获取投票人列表的API吗