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]])
| 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, |
no test coverage detected