ImportJSON icon indicating copy to clipboard operation
ImportJSON copied to clipboard

Syntax for ImportJSONViaPost

Open zacchaeus80 opened this issue 3 years ago • 0 comments

Bit of a newbie question, I'm afraid, but I'm struggling to figure out the correct syntax for using ImportJSONViaPost to access data from the GivEnergy API. The curl syntax is as follows:

curl --request POST
"https://api.givenergy.cloud/v1/inverter/consequatur/energy-flows"
--header "Authorization: Bearer {YOUR_API_KEY}"
--header "Content-Type: application/json"
--header "Accept: application/json"
--data "{ "start_time": "2022-01-01", "end_time": "2022-01-01", "grouping": 0, "types": [ 0, 1, 2, 5 ] }"

(Further details here)

Many thanks.

zacchaeus80 avatar Jun 16 '22 16:06 zacchaeus80