Content Hub ONE Client SDK

The Content Hub ONE client software development kit (SDK) provides a unified set of APIs and tools that let you develop apps. It interacts with the Content Management API so you can make requests to create, edit, manage, and publish content in your preferred programming language using typed objects.

Note

Content Hub ONE includes a .NET and a JavaScript SDK.

Authentication is done through the Sitecore Identity service. By default, the SDK connects to the production endpoints for the API.

You can copy client credentials from the Content Hub ONE web app and then use them in your code to create an authenticated client.

using Sitecore.ContentHubOne.Sdk;
using Sitecore.ContentHubOne.Sdk.Authentication;

namespace Examples
{
    public class Program
    {
        static void Main(string[] args)
        {
            // Enter your credentials here
            var credentials = new ClientCredentialsScheme("client_id", "client_secret");

            // Create the Headless client
            var client = ContentHubOneClientFactory.Create(credentials);
        }
    }
}

Before you use the SDK, you must: