1

我知道我可以使用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,它是函数的相同可选参数getStoryPollVoters()

我的问题是我想设置它max_id,但我不知道如何获得max_id每个故事的投票选项。我已经尝试通过代码查看该方法的准系统,但我看到的只是:

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

if ($maxId !== null) {
    $request->addParam('max_id', $maxId);
}

它只是请求的一个附加参数,在存储库中几乎没有文档,并且在其他功能(如 Feed、评论、朋友等)中具有熟悉的格式,因此我尝试在线搜索的尝试令人失望。

我想知道是否有人知道如何 - 知道 $storyId、$pollId 和 $votingOption - 可以查询max_id以请求所有选民数据?

先感谢您!

4

0 回答 0