This command works fine if I paste into a command window directly:
curl -X POST -H "Content-type: application/json" --data "{\"text\":\"test\"}" --url "https://chat.googleapis.com/v1/spaces/[removed]/messages?key=[removed]&token=[removed]" yet when I execute this from within a batch file, I receive the following:
{ "error": { "code": 400, "message": "Request contains an invalid argument.", "status": "INVALID_ARGUMENT" } } I've tried every permutation of escaping the quotes in the json data statement with no luck.