Skip to content

Example of usage Nwave GraphQL occupacny API (data requesting and subscription)

License

Notifications You must be signed in to change notification settings

nwaveio/graphql_occupancy_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What is this

This is an example of simple Nwave GraphQL API client. It enables to get the occupancy data on demand or subscribe to occupancy data change notifications.

Preparation

  1. Install Python 3 and Pip
  2. Install poetry
$ pip install poetry 
  1. Install dependencies
$ poetry install

Example running

  1. Open file tests/example.py in an editor
  2. Replace value of variable AUTH_TOKEN by your Nwave authorization token
  3. Replace values of variable ZONE_ID and FLOOR_NUMBER by identifiers of your infrastructure objects
  4. Run the example by command
$ PYTHONPATH=src poetry run python3 ./tests/example.py

About

Example of usage Nwave GraphQL occupacny API (data requesting and subscription)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages