The JSON data for example is {"date_id":"20240511","date_type":"1"}.
It seems I can not pass the quotes correctly. Based on what is possible in the shell, I would write:
Code: Select all
Arguments$ = ~"api get getHouseholdStoragePsReport '{\"date_id\":\"20240511\",\"date_type\":\"1\"}'"
p = RunProgram(Command$, Arguments$ ; ...