我知道我可以使用带有以下参数的getStoryPollVoters()
来接收故事数据和民意测验数据:
* @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
,并将结果用作getStoryPollVoters()
的参数,但是还有另一个结果,没有它,我不相信我可以检索所有选民数据。
当我请求上述内容时,每个民意测验投票选项最多可获得〜50个回复,但我知道一个事实(基于我在instagram官方应用中所看到的)回应。
在相同的请求中,我获得了属性more_available: true
,它意味着还有更多,但是紧随其后的是属性max_id
,该属性与函数{{ 1}}。
我的问题是我想设置此getStoryPollVoters()
,但我不知道如何为每个故事民意测验投票选项获取max_id
。我尝试遍历该方法的准系统代码,但我看到的是:
max_id
这只是请求的一个附加参数,该参数在存储库中几乎没有文档,并且在其他功能(例如Feed,评论,好友等)中具有熟悉的格式,因此我在网上搜索的尝试令人失望。
我想知道是否有人知道$ storyId,$ pollId和$ votingOption,如何查询$request = $this->ig->request("media/{$storyId}/{$pollId}/story_poll_voters/")
->addParam('vote', $votingOption);
if ($maxId !== null) {
$request->addParam('max_id', $maxId);
}
才能请求所有选民数据?
提前谢谢!