Skip to content

Remote API Key

Claudio Bonesana edited this page May 27, 2021 · 2 revisions

Magic API Key

In order to manage remotely the available surveys on the backend, a system of API Key is available. This system starts from an initial Magic key: by using this key it is possible to request or revoke other keys. To change this key, change the environment variable:

MAGIC_API_KEY=<...>

Remote query

For testing and experiments purpose, it is possible to query the backend service without having a working human-ready client interface. To achieve this in Java, two requirements are needed:

  • have a working and reachable backend service;
  • have the exchange library installed.

The installation of the library can be done using Maven. From the root directory of the project, execute the following command to install the exchange library:

mvn clean install -f AdapQuestExchange

For an example of implementation, check the Tool class.

Clone this wiki locally