menu arrow_back close search On Github

Client libraries

  1. Home
  2. Client libraries

We provide several client libraries that you can use to manage your devices programmatically:

If your language is not yet supported, you can access the REST API directly.


All of the clients require an API token for authorization. This token can be set in a configuration file, in an environment variable, or directly in program code.

The configuration file is located at ${HOME}/.telenor-nbiot. The file is a simple list of key/value pairs. Additional values are ignored. Comments must start with a #:

# This is the URL of the Telenor NB-IoT REST API. The default value is
# and can usually be omitted.

# This is the API token. Create new token by logging in to the Telenor NB-IoT
# front-end at and create a new token there.
token=<your api token goes here>

The configuration file settings can be overridden by setting the environment variables TELENOR_NBIOT_ADDRESS and TELENOR_NBIOT_TOKEN. If you only use environment variables the configuration file can be ignored. Finally, there is a Client constructor that accepts the address and token directly.

Edit this page