This is the hovi_client module, used for accessing data from https://api.hovi.nl/
To refer to this module, add this to your moduledefinition.xml packaging:
<packaging download="true">
<dependency module="hovi_client" repository="https://gitlab.com/webhare/apis/hovi_client.git" moduleversion=">=3.1.0" />
</packaging>This module implements a client for HOVI API V3 as specified on https://api.hovi.nl/api/3/openapi.json
For more information about HOVI and about obtaining API keys please see https://www.hovi.nl/
Configure the API key in the module's settings in the WebHare configuration app.
Then in HareScript use the GetHOVIAPIClient to get a singleton using that API key:
<?wh
LOADLIB "mod::hovi_client/lib/apiclient.whlib";
// We asumme the primary transaction is already open
OBJECT client := GetHOVIAPIClient();
DumpValue(client->GetPermissions());