1. Fluent SDK

Get started

To create a Fluent wrapper for the Web Client SDK, start by configuring the NuGet feed and then instantiate the Fluent SDK.

Note

You can use the Fluent SDK in scripts within Content Hub out-of-the-box.

External integration through Web Client SDK

To configure the NuGet feed for external integrations through the Web Client SDK, follow the instructions in the Get started section of the Web Client SDK. Then, add a reference to the Stylelabs.M.Sdk.Fluent package to your project.

Instantiate the Fluent SDK

Since the Fluent SDK builds on top of the existing Web Client SDK it requires a configured instance of the IWebMClient. See the authentication documentation of the Web SDK for an explanation on how to get an authentication IWebMClient instance.

IWebMClient client = MClientFactory.CreateMClient(endpoint, grant);
FluentClient fluentClient = new FluentClient(client);

Instantiate the Fluent SDK

FluentClient fluentClient = new FluentClient(MClient);
If you have suggestions for improving this article, let us know!