Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Syntax for ImportJSONViaPost #237

Open
zacchaeus80 opened this issue Jun 16, 2022 · 0 comments
Open

Syntax for ImportJSONViaPost #237

zacchaeus80 opened this issue Jun 16, 2022 · 0 comments

Comments

@zacchaeus80
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant