Configuration
Permissions
By default only administrators will have permission to access the configuration page of the module.
To configure the user permissions go to Administration » People » Permissions and select the "administer immoweb api client" permission.
Normal configuration
The configuration screen can be accessed on the following path /admin/config/services/immoweb_api_client
When saving the form the configuration will be stored in the config system and will be exported using config export. Also a validation check will be done by making an authentication call and a information GET request. The result of this test will be shown as a message after the form is re-loaded.
Configuration override
Useful when you want to set different config per environment automatically.
Add the following to your settings.php or settings.local.php
/**
* Immoweb API Client config.
*/
$config['immoweb_api_client.settings']['client_id'] = 'iw_api_in';
$config['immoweb_api_client.settings']['client_secret'] = 'SECRET';
$config['immoweb_api_client.settings']['username'] = 'USERNAME';
$config['immoweb_api_client.settings']['password'] = 'PASSWORD';
$config['immoweb_api_client.settings']['api_key'] = 'API KEY';
$config['immoweb_api_client.settings']['target_server'] = 'TEST';Configuration verification
Verify if your overrides are successful by using the following Drush command:
drush cget immoweb_api_client.settings --include-overriddenHelp improve this page
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion