Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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
languagejs
{"data":{"cameraList":[{"name":"myCamera"}]}

...