Get() [ServicePreferenceManager]

Get

Description

Returns a specific service preference.

Package Details

Interface

IServicePreferenceManager

Syntax

ServicePreferenceManager.Get(int id, string key = "");

Returns

Task<ServicePreference>

API

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

Parameters

Parameter

Description

Parameter Type

Parameter

Description

Parameter Type

id

The service id associated to the service preference

path

key

The service preference key

query string

Returns

200 OK - Service Preference

Example

const int serviceId = 11; const string key = "your key"; var servicePreference = await _servicePreferenceManager.Get(serviceId, key);