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

Method _request_for_pagination

slack_sdk/web/base_client.py:210–223  ·  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: str, req_args: Dict[str, Dict[str, Any]])

Source from the content-addressed store, hash-verified

208 )
209
210 def _request_for_pagination(self, api_url: str, req_args: Dict[str, Dict[str, Any]]) -> Dict[str, Any]:
211 """This method is supposed to be used only for SlackResponse pagination
212
213 You can paginate using Python's for iterator as below:
214
215 for response in client.conversations_list(limit=100):
216 # do something with each response here
217 """
218 response = self._perform_urllib_http_request(url=api_url, args=req_args)
219 return {
220 "status_code": int(response["status"]),
221 "headers": dict(response["headers"]),
222 "data": json.loads(response["body"]),
223 }
224
225 def _urllib_api_call(
226 self,

Callers 2

__next__Method · 0.45
__next__Method · 0.45

Calls 1

Tested by

no test coverage detected