Get()

Get

Description

Returns a specific service setting.

Note

Service settings are cached for 10 minutes, so any updates may not be part of the list until the cache is refreshed.

Package Details

Interface

IServiceSettingManager

Syntax

ServiceSettingManager.Get(int serviceId, string key, bool useDefaults = true);

Returns

Task<ServiceSetting>

API

GET
/api/v1/services/{id}/service-settings

Parameters

Parameter

Description

Parameter Type

Parameter

Description

Parameter Type

id

The service id associated to the service setting

path

key

The service setting key

query string

useDefault

True:
If you want to use the default value if the key isn't found for the given service.

False:
Don’t use any default value

query string

Returns

200 OK - Service Setting

Example

const int serviceId = 11; const string key = "yourkey"; var serviceSetting = await _serviceSettingManager.Get(serviceId, key);