Jump to content

Logging Post Request from Outside


Jonathan Lahijani
 Share

Recommended Posts

I have a URL hook like this which acts as an API endpoint:

wire()->addHook('/foo/', function(HookEvent $event) {
  bd($event);
}); 

That endpoint will be hit from somewhere with some post data, outside of ProcessWire.  As you can see, I have a bardump to log $event, but I won't be able to see that output because it's coming from some outside request.  How do I actually log it and store it (without using ProcessWire's own $log capabilities)?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...