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)
| 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, |
nothing calls this directly
no test coverage detected