...
User TOKEN is one of two authorization options. The second option is use OAuth 2.0 .
Authorization header
Code Block |
---|
“Authorization : Bearer TOKEN” |
Where TOKEN is 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.
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"}]} |
For testing purposes you can user our embedded API explorer, Postman or your own GraphQL client application.
TOKEN handling:
Panel | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Be careful on TOKEN. Be sure what you do. You can update/delete important data on your account. |