Versions Compared

Key

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

Table of contents

On this page we have an example python script to:

  • Add a device
  • Update a setting
Info

Our advise is to use Provisioning Profiles as the setting UUID value is not visible in your web-interface but needs to be provided by Gigaset.


In this example, we used a windows PC where we installed Python

Table of Contents

Install dependencies

Code Block
pip3 install requests
Code Block
pip3 install requests-hawk


Gather data from GRAPE

Gather API key

You need to create the API key if not already available.


Copy 1: Access Key ID (API_KEY)


Copy 2: Access Key Secret (API_SECRET)

Find the setting you want to update


Setting:

N610/N670/N870(E)

KEY_UUID:

  1. Redirect server URL:
  1. 094c8a73a08644a1aaba837c33dfb528

Desktop


  1. Redirect server URL:
  1. 50a400560eec4dc0b96b026094e06562

Python script

Download the following python script: add_device.py

Code Block
python add_device.py
usage: add_device.py [-h] --api-key API_KEY --api-secret API_SECRET --device-mac DEVICE_MAC --product-code PRODUCT_CODE --key-uuid KEY_UUID --value VALUE

Example:

  • N610/N670/N870 device
  • With MAC address: 589EC60D8C73
  • Provisioning parameter: Provisioning.global.ProvisioningServer in GRAPE: "
  • Provisioning URL: http://192.168.2.200/dectprovisioning

If the device already exists, the value will be overwritten.

Code Block
titleN610/N670/N870 example
python add_device.py --api-key xxxxxxxxxxxxxxxxxxxxxxxxxxx --api-secret xxxxxxxxxxxxxxxxxxxxxxxxxxxxx --device-mac 589EC60D8C73 --key-uuid 094c8a73a08644a1aaba837c33dfb528 --value http://192.168.2.200/dectprovisioning

Example:

  • P850W device
  • With MAC address: 000413E41F3F
  • Provisioning parameter: setting_server in GRAPE: "
  • Provisioning URL: http://192.168.2.200/P850provisioning

If the device already exists, the value will be overwritten.

Code Block
titleP850W example
python add_device.py --api-key xxxxxxxxxxxxxxxxxxxxxxxxxxx --api-secret xxxxxxxxxxxxxxxxxxxxxxxxxxxxx --device-mac 000413E41F3F --key-uuid 50a400560eec4dc0b96b026094e06562 --value http://192.168.2.200/P850provisioning