I'm not sure if I'm understanding what slack means by a post request.
In my experience with what I'm familiar with it's either a curl request POST or with PHP use something like:
if ($_SERVER['REQUEST_METHOD'] === 'POST'){
// get token
$token = $_POST['token'];
}
I'm not receiving anything from Slack though, Is it a cors problem? I tried that I enabled headers. I saw other questions, I can't seem to find much on this topic.
how to handle outgoing-webhook (Slack) using php
Slack outgoing webhook :URL(s)
I selected a channel, I also put in a trigger word, the return text is not related to the trigger word. Maybe by returning the text it's triggering/causing a loop? I just tried that no dice as well. There are no errors in apache, the code itself works, when I visit the link directly on my server it processes the code.
The incoming webhooks are no problem.
I don't understand I've tried this many times could never get it to work what am I missing?
Regarding the headers I wasn't sure what domain to match to, I didn't enable all (the star *) so I tried slack.com but it's possible that's not what slack uses to send out the request.