Interface IMClient

Version: 3.4

Client for the Marketing Content Hub.

Namespace: StylelabsStylelabs.MSdk
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public interface IMClient

Properties

Assets

Gets the Assets client. Contains functionality for asset operations.

Declaration
RequestResponse
IAssetsClient Assets { get; }
Property Value
TypeDescription
IAssetsClient

Commands

Gets the commands client. Contains functionality to execute commands in M.

Declaration
RequestResponse
ICommandsClient Commands { get; }
Property Value
TypeDescription
ICommandsClient

Cultures

Gets the culture client. Allows fetching culture information from M.

Declaration
RequestResponse
ICultureClient Cultures { get; }
Property Value
TypeDescription
ICultureClient

DataSourceFactory

Gets the data source factory. Contains functionality to create IDataSources.

Declaration
RequestResponse
IDataSourceFactory DataSourceFactory { get; }
Property Value
TypeDescription
IDataSourceFactory

DataSources

Gets the data source client. Contains functionality to query, create and manipulate IDataSources.

Declaration
RequestResponse
IDataSourcesClient DataSources { get; }
Property Value
TypeDescription
IDataSourcesClient

Entities

Gets the entities client. Contains functionality to query, create and manipulate IEntity instances.

Declaration
RequestResponse
IEntitiesClient Entities { get; }
Property Value
TypeDescription
IEntitiesClient

EntityDefinitions

Gets the entity definitions client. Contains functionality to query, create and manipulate IEntityDefinitions.

Declaration
RequestResponse
IEntityDefinitionsClient EntityDefinitions { get; }
Property Value
TypeDescription
IEntityDefinitionsClient

EntityFactory

Gets the entity factory. Contains functionality to create IEntity instances.

Declaration
RequestResponse
IEntityFactory EntityFactory { get; }
Property Value
TypeDescription
IEntityFactory

Jobs

Gets the jobs client. Contains functionality to create jobs.

Declaration
RequestResponse
IJobsclient Jobs { get; }
Property Value
TypeDescription
IJobsclient

Logger

Gets or sets the logger. Contains functionality to log messages.

Declaration
RequestResponse
ILogger Logger { get; set; }
Property Value
TypeDescription
ILogger

MassEdit

Gets the mass-edit client. Contains functionality to create mass-edit jobs.

Declaration
RequestResponse
IMassEditClient MassEdit { get; }
Property Value
TypeDescription
IMassEditClient

Notifications

Gets the notifications client. Contains functionality to manage and send notifications.

Declaration
RequestResponse
INotificationsClient Notifications { get; }
Property Value
TypeDescription
INotificationsClient

Permissions

Gets the permissions client. Contains functionality to get entity permissions.

Declaration
RequestResponse
IPermissionsClient Permissions { get; }
Property Value
TypeDescription
IPermissionsClient

Policies

Gets the policies client. Contains functionality to get and update IPolicy objects.

Declaration
RequestResponse
IPoliciesClient Policies { get; }
Property Value
TypeDescription
IPoliciesClient

Querying

Gets the querying client. Contains functionality to query and scroll for IEntity.

Declaration
RequestResponse
IQueryingClient Querying { get; }
Property Value
TypeDescription
IQueryingClient

Scripts

Gets the scripts client. Contains functionality to execute scripts.

Declaration
RequestResponse
IScriptsClient Scripts { get; }
Property Value
TypeDescription
IScriptsClient

SelectionPools

Gets the selection pool client. Contains functionality for selection pool operations.

Declaration
RequestResponse
ISelectionPoolsClient SelectionPools { get; }
Property Value
TypeDescription
ISelectionPoolsClient

Settings

Gets the settings client. Contains functionality to get setting entities.

Declaration
RequestResponse
ISettingsClient Settings { get; }
Property Value
TypeDescription
ISettingsClient

Translations

Gets the translations client. Contains functionality to manage translations.

Declaration
RequestResponse
ITranslationsClient Translations { get; }
Property Value
TypeDescription
ITranslationsClient

TypedEntityFactory

Gets the typed entity factory. Contains functionality to create typed IEntity instances.

Declaration
RequestResponse
ITypedEntityFactory TypedEntityFactory { get; }
Property Value
TypeDescription
ITypedEntityFactory

Users

Gets the users client. Contains functionality to get and interact with user entities.

Declaration
RequestResponse
IUsersClient Users { get; }
Property Value
TypeDescription
IUsersClient

Methods

ImpersonateAsync(string)

Creates a new IMClient that acts on behalf of the user with the specified username. The current logger will be copied to the new client.

Declaration
RequestResponse
Task<IMClient> ImpersonateAsync(string username)
Parameters
TypeNameDescription
stringusername

The username of the user to impersonate.

Returns
TypeDescription
Task<>IMClient

A new client bound to specified user.

Exceptions
TypeCondition
ForbiddenException

When the current user is not allowed to impersonate other users.

Do you have some feedback for us?

If you have suggestions for improving this article,