Hi I am trying to get event data of my device on TTN (V3) via API calls.
I’m using cURL in the windows power shell and have tried different examples but I can’t get it to work.
It always gives me a:
{“code”:3,“message”:“invalid character ‘i’ looking for beginning of object key string”}
My input is as follow with API key and app name replaced
curl https://eu1.cloud.thethings.network/api/v3/events -H "Authorization: Bearer NNSXS.XXX.YYYY" -H "Accept: text/event-stream" --data '{"identifiers":[{"application_ids":{"application_id":"test-app"}}]}'
or
curl https://eu1.cloud.thethings.network/api/v3/events -X POST -H "Authorization: Bearer NNSXS.XXX.YYY" -H "Accept: text/event-stream" --data '{"identifiers":[{"application_ids":{"application_id":"test-app"}},{"gateway_ids":{"gateway_id":"test-gw"}}]}'
Thanks
Edit: I just tried it on a Linux machine and it does work.
Does anyone know what the problem with windows cURL is?