Skip to main content

Installation

BASH
1
PM> Install-Package Zengenti.Contensis.Delivery
BASH
1
dotnet add package Zengenti.Contensis.Delivery

Client creation

C#
1
var client = ContensisClient.Create();
C#
1
var sharedResourcesClient = ContensisClient.Create("PUT_PROJECT_ID_HERE");
C#
1
var client = ContensisClient.Create("PUT_PROJECT_ID_HERE", "http://cms.contensis.com", "PUT_CLIENT_ID_HERE", "PUT_SHARED_SECRET_HERE", versionStatus = VersionStatus.Latest);

Default configuration

Non-Contensis published websites

C#
1
2
3
4
5
6
7
8
9
10
11
using Zengenti.Contensis.Delivery; var defaultConfiguration = new ContensisClientConfiguration( rootUrl: "http://cms.contensis.com", projectApiId: "myProject", defaultVersionStatus: VersionStatus.Latest, // default: Published clientId: "651465e0-2fb8-4b0f-aa2f-1ab34cfe0513", sharedSecret: "2327d623d44e41efa837717a626f4b75098348ebb0a64023a64a805536024dfb1a558c9c49dc47099e8bc203f60fda80" ); ContensisClient.Configure(defaultConfiguration);

Still need help?

New support request