callback documentation?

For general discussion of the Poker Mavens software
Post Reply
segmentlime
Posts: 33
Joined: Wed Apr 22, 2020 4:39 pm

callback documentation?

Post by segmentlime »

Besides the callback.php file is there any documentation of the callback POST requests?

Are they format as JSON or just plain POST key/value pairs?

i have some programming around some callback events for notifications into Discord etc. and I would like to make up a small regression / confirmation test suite (by driving a series of callback event notifications with curl) that I can quickly run anytime i make any changes to this code.

Any pre-existing samples of test data of callback event examples I could modify rather than make up from scratch or capture?

A small issue this testing is that for some processing related to the tourney finish event I need the tournament name and the notification provides game number, which as you know is key to an entry in a non-persistent cache, and so without actually running games through the interface the entry is not there for the regression test. I guess i can make my own test file alternative to the cache that i use to handle the failed lookup in the regression test but a hassle. Any way to prime that cache like a game has just finished?

As always, your time and help is appreciated.
Kent Briggs
Site Admin
Posts: 6015
Joined: Wed Mar 19, 2008 8:47 pm

Re: callback documentation?

Post by Kent Briggs »

They are POST key/value pairs. Help file is here:

https://www.briggsoft.com/docs/pmavens/PMHelp.htm

Click "System" in the left column and then scroll the right column all the way down. I don't have any data samples and you'll have to actually run some tournaments to get them into the memory cache. Although you can makes some that last one hand by going all in.
Post Reply