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:
- .NET Platform by Microsoft and contributors
- Ben.Demystifier by Ben Adams
- Docusaurus by Meta Platforms, inc, and contributors
- FluentValidation by Jeremy Skinner and contributors
- MinVer by Adam Ralph and constributors