-
Notifications
You must be signed in to change notification settings - Fork 2
Description
What would this enhancement be for?
Scripting
Describe your enhancement suggestion in more detail
$.AsyncWebRequest in Panorama supports GET, POST, and other request methods. GET requests are fine when you are retrieving JSON or other data from a site or server. However, POST requests are a bit limited at the moment as there is no current way to add JSON payloads to the request. You can do URL queries in the URL (Ex. ?content={}), but not every API supports this unless you program it specifically into a program youre using, or the URL source supports it.
I am trying to use $.AsyncWebRequest to send Discord Webhook embeds and JSON data to collect playtesting data (end-of-map form data, playtime length, etc.), along with GitHub JSON requests to add Issues to a task tracking repository for bug reports, but those all need JSON payloads to work correctly. I could technically set up a proxy server of sorts that can receive and process data via URL queries, but that can be a bit painful to deal with, and inherently, the back end should still be able to support JSON payloads as is, it just needs to be exposed to the function.
While most people might not benefit or find a need for this, I wish to still try and pave a way to help design systems for playtesting for Strata without having something external needed to make things work. For example, currently I've had to use ScriptSteamShowURL in VScript to open Google Forms, but preferably, I want to have a nicer built-in form done in Panoram that playtests can fill out without having to deal with Steam Overlay jank (especially since it currently doesn't work on Linux).