Skip to content

Commit

Permalink
Add cursor based pagination to team.accessLogs (#1368)
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch authored May 17, 2023
1 parent 7eec685 commit dfc6b79
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions slack_sdk/web/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4170,6 +4170,8 @@ async def team_accessLogs(
count: Optional[Union[int, str]] = None,
page: Optional[Union[int, str]] = None,
team_id: Optional[str] = None,
cursor: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> AsyncSlackResponse:
"""Gets the access logs for the current team.
Expand All @@ -4181,6 +4183,8 @@ async def team_accessLogs(
"count": count,
"page": page,
"team_id": team_id,
"cursor": cursor,
"limit": limit,
}
)
return await self.api_call("team.accessLogs", http_verb="GET", params=kwargs)
Expand Down
4 changes: 4 additions & 0 deletions slack_sdk/web/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4161,6 +4161,8 @@ def team_accessLogs(
count: Optional[Union[int, str]] = None,
page: Optional[Union[int, str]] = None,
team_id: Optional[str] = None,
cursor: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> SlackResponse:
"""Gets the access logs for the current team.
Expand All @@ -4172,6 +4174,8 @@ def team_accessLogs(
"count": count,
"page": page,
"team_id": team_id,
"cursor": cursor,
"limit": limit,
}
)
return self.api_call("team.accessLogs", http_verb="GET", params=kwargs)
Expand Down
4 changes: 4 additions & 0 deletions slack_sdk/web/legacy_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -4172,6 +4172,8 @@ def team_accessLogs(
count: Optional[Union[int, str]] = None,
page: Optional[Union[int, str]] = None,
team_id: Optional[str] = None,
cursor: Optional[str] = None,
limit: Optional[int] = None,
**kwargs,
) -> Union[Future, SlackResponse]:
"""Gets the access logs for the current team.
Expand All @@ -4183,6 +4185,8 @@ def team_accessLogs(
"count": count,
"page": page,
"team_id": team_id,
"cursor": cursor,
"limit": limit,
}
)
return self.api_call("team.accessLogs", http_verb="GET", params=kwargs)
Expand Down

0 comments on commit dfc6b79

Please sign in to comment.