The problem: I'm developing a plugin which needs to accept POST data (webhooks from an external source). I do not have control over the format of the data POSTed. My only option for passing my own data is through URL arguments passed when registering the webhook.
So far I've come up with 3 ideas, none of which seem ideal, but two of which would definitely work (I don't think #2 can work...). I'm hoping that there is a clean way to achieve this without hacking WordPress too badly.
Point the webhook at the WP home and just listen within my plugin for the post (based on some arbitrary URL parameter I would include within the webhook). My issue with this is that going through the full generation of a WordPress page just to receive a POST is a lot more overhead than should be required.
Along the way through my research I found XML-RPC, which looked promising, until I saw that it was reliant on the POST body containing invocation information. Obviously that won't work. Is there any workaround that I am missing or is this a dead end?
Posting directly to a URL within the plugin. This then requires manually bootstrapping WP. Not generally ideal...