ImportJSON
ImportJSON copied to clipboard
Syntax for ImportJSONViaPost
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.