Versions Compared

Key

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

...

Communication with the GraphQL Cloud API server has to be authorized via an access TOKEN. The valid TOKEN has to be inserted into the header of each API call. A TOKEN can be created via user interface (section </> API).

...


User TOKEN is one of two authorization options. It is recommended in most of integration use cases.

...

Code Block
Authorization : Bearer $TOKEN

Where $TOKENis created token in the preview step.

You can test CURL in your terminal window. Replace the word TOKEN in the following example with the generated token.

wide
Code Block
breakoutMode
curl -X POST -H 'Authorization: Bearer $TOKEN' -H "Content-Type: application/json" --data-binary '{"query":"{cameraList{name}}"}' https://system2.netrex.cz/api/graphql.php

...