Skip to main content

WebTrendsSDK Documentation

A .NET library for the WebTrends v2 API

NuGetGitHub: mainGithub: releaseGitHub starsGitHub issuesLicense

WebTrendsSDK - An open-source Unofficial SDK for integrating with the WebTrends OTS REST API

The WebTrendsSDK can be used to manage experiment participation in WebTrends testing.

Quick start (.NET Core & .NET 5+)

Install the NuGet package:

dotnet add package WebTrendsSDK

Then add the WebTrendsSDK to your services:

services.AddWebTrends();

Add your auth token to your config:

{
"WebTrends": {
"AccountId": "YOUR_ACCOUNT_ID",
"KeyToken": "YOUR_AUTH_TOKEN",
"WebsiteUrl": "https://www.example.com"
}
}

Then use it in your code:

public class MyClass(IWebTrendsApiClient client)
{
public async Task DoSomething()
{
var project = await client.Ots.Control.GetProjectAsync("ta_12345");
}
}

Open source

This project uses open-source components. Please consider contributing to, or sponsoring these amazing projects: