@alexandree,
I see a few issues in the snippet you shared.
- Every item in the array should be a string. It’s not so in the snippet you shared. Please enclose every request in
"
or use template literals (``). I’d recommend using template literals. - Your cURL seems to be invalid too. Can you enclose the JSON that follows
-d
in"
too?
I made these changes locally and the script I shared is returning the right result. It should work for you too.