callback documentation?
Posted: Thu Jan 02, 2025 4:44 pm
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.
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.