...
User TOKEN is one of two authorization options. The second option is use OAuth 2.0 .
Authorization header
Code Block |
---|
“Authorization : Bearer TOKEN” |
...
Code Block |
---|
curl -X POST -H 'Authorization: Bearer TOKEN' -H "Content-Type: application/json" --data-binary '{"query":"{cameraList{name}}"}' https://system2.netrex.cz/api/graphql.php |
Response:
Code Block | ||
---|---|---|
| ||
{"data":{"cameraList":[{"name":"myCamera"}]} |
...