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 |
---|---|---|
id | The service id associated to the service setting | path |
key | The service setting key | query string |
useDefault | True: False: | query string |
Returns
200 OK - Service Setting
Example
const int serviceId = 11;
const string key = "yourkey";
var serviceSetting = await _serviceSettingManager.Get(serviceId, key);