cURL request
Posted: 06 May 2016 18:15
Hello Martin,
I am sorry to be bothersome, I am trying to figure this out.
I am using the HTTP Request action to get a json response.
In cURL I would do:
curl -H "Content-Type: application/json" -H "mymagickeyhere" -X POST -d '{"path":"/root/status"}' https://api.onion.io/v1/devices/mydevic ... /file/read
So, I believe I should:
URL:
https://api.onion.io/v1/devices/mydevic ... /file/read
Request Method: POST
Form Field List:
path=/root/status
Set custom HTTP headers:
"Content-Type: application/json"
"mymagickeyhere"
However I keep getting an empty response. Any ideas as to why this might be?
Thanks for all your help.
If you would like I can send you the key and uuid via email.
I am sorry to be bothersome, I am trying to figure this out.
I am using the HTTP Request action to get a json response.
In cURL I would do:
curl -H "Content-Type: application/json" -H "mymagickeyhere" -X POST -d '{"path":"/root/status"}' https://api.onion.io/v1/devices/mydevic ... /file/read
So, I believe I should:
URL:
https://api.onion.io/v1/devices/mydevic ... /file/read
Request Method: POST
Form Field List:
path=/root/status
Set custom HTTP headers:
"Content-Type: application/json"
"mymagickeyhere"
However I keep getting an empty response. Any ideas as to why this might be?
Thanks for all your help.
If you would like I can send you the key and uuid via email.