MCPcopy Index your code
hub / github.com/slackapi/python-slack-sdk / _request_for_pagination

Method _request_for_pagination

slack/web/base_client.py:241–254  ·  view source on GitHub ↗

This method is supposed to be used only for SlackResponse pagination You can paginate using Python's for iterator as below: for response in client.conversations_list(limit=100): # do something with each response here

(self, api_url, req_args)

Source from the content-addressed store, hash-verified

239 )
240
241 def _request_for_pagination(self, api_url, req_args) -> Dict[str, any]:
242 """This method is supposed to be used only for SlackResponse pagination
243
244 You can paginate using Python's for iterator as below:
245
246 for response in client.conversations_list(limit=100):
247 # do something with each response here
248 """
249 response = self._perform_urllib_http_request(url=api_url, args=req_args)
250 return {
251 "status_code": int(response["status"]),
252 "headers": dict(response["headers"]),
253 "data": json.loads(response["body"]),
254 }
255
256 def _urllib_api_call(
257 self,

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected