Skip to content

Commit

Permalink
Add stringify_ids endpoint parameter for API.followers_ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Harmon758 committed Apr 7, 2021
1 parent cbe9eb3 commit c490027
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tweepy/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1386,14 +1386,15 @@ def update_list(self, **kwargs):
@pagination(mode='cursor')
@payload('ids')
def followers_ids(self, **kwargs):
"""followers_ids(*, user_id, screen_name, cursor, count)
"""followers_ids(*, user_id, screen_name, cursor, stringify_ids, count)
Returns an array containing the IDs of users following the specified
user.
:param user_id: |user_id|
:param screen_name: |screen_name|
:param cursor: |cursor|
:param stringify_ids: Have IDs returned as strings instead
:param count: |count|
:rtype: list of Integers
Expand All @@ -1402,7 +1403,7 @@ def followers_ids(self, **kwargs):
"""
return self.request(
'GET', 'followers/ids', endpoint_parameters=(
'user_id', 'screen_name', 'cursor', 'count'
'user_id', 'screen_name', 'cursor', 'stringify_ids', 'count'
), **kwargs
)

Expand Down

0 comments on commit c490027

Please sign in to comment.