-
Notifications
You must be signed in to change notification settings - Fork 250
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to read custom headers or query string sent through webhook curl request using Python bolt SDK? #1005
Comments
@hello-ashleyintech thanks for the reply. I have tried the solution given by you but still, the headers are not getting logged. Logs for reference:-
Here is my code snippet:-
This is how I'm sending the payload using the curl:- I want to capture the custom header or request parameter which is channel_name=slave1_private once received through the code. I'm very close to it but not able to get my head around this problem |
@vinod827 Your additional request headers in an incoming webhook request won't be transferred to the payload request to your Bolt app. Those unsupported data could be just ignored. Instead, you can have message metadata to relay arbitrary data within a channel message: https://api.slack.com/metadata/using |
Thanks @seratch this works and fulfills my requirements here by passing the metadata in the message |
Hi, I'm using Python bolt SDK and trying to read a message that got received on a specific slack channel. That message was delivered using the following webhook curl request:-
curl -X POST -H 'Content-type: application/json' -H 'Channel_Name: slave1_private' --data '{"text":"Hello, World!"}' <webhook url>\?channel_name\=slave1_private
I do not find any way of parsing either the custom header or query string from the following bolt code:-
Is there any support in the SDK to read the custom headers or query string?
The text was updated successfully, but these errors were encountered: