Skip to content

Commit

Permalink
Added story_voters endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotzke committed Sep 27, 2021
1 parent 0fda036 commit 8f71d9d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions instagram_private_api/endpoints/media.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,3 +587,18 @@ def story_viewers(self, story_pk, **kwargs):
endpoint = 'media/{story_pk!s}/list_reel_media_viewer/'.format(
story_pk=story_pk)
return self._call_api(endpoint, query=kwargs)

def story_voters(self, media_id, poll_id, **kwargs):
"""
Get list of story' poll voters
:param media_id: ID of the media (story)
:param poll_id: ID of the poll
:param kwargs:
**max_id**: For pagination
:return:
"""
endpoint = 'media/{media_id!s}/{poll_id!s}/story_poll_voters/'.format(
media_id=media_id,
poll_id=poll_id)
return self._call_api(endpoint, query=kwargs)

0 comments on commit 8f71d9d

Please sign in to comment.