aboutsummaryrefslogtreecommitdiffstats
path: root/slack
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2023-01-16 01:14:29 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2024-02-18 11:32:53 +0100
commit18f59853a045365b3d6bab26ca5d599b8cbc82db (patch)
tree2d4a85b274b45b50430df0b395972224d24cbaa4 /slack
parent65e245f20bfc67f4ada025543997a10c556c7fc2 (diff)
downloadwee-slack-18f59853a045365b3d6bab26ca5d599b8cbc82db.tar.gz
Send params as post body instead of query params
Diffstat (limited to 'slack')
-rw-r--r--slack/slack_api.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/slack/slack_api.py b/slack/slack_api.py
index 221bb59..492aae4 100644
--- a/slack/slack_api.py
+++ b/slack/slack_api.py
@@ -31,10 +31,12 @@ class SlackApi:
}
async def _fetch(self, method: str, params: Dict[str, Union[str, int]] = {}):
- url = f"https://api.slack.com/api/{method}?{urlencode(params)}"
+ url = f"https://api.slack.com/api/{method}"
+ options = self._get_request_options()
+ options["postfields"] = urlencode(params)
response = await http_request(
url,
- self._get_request_options(),
+ options,
self.workspace.config.network_timeout.value * 1000,
)
return json.loads(response)