Skip to content

wingify/vwo-fme-dotnet-sdk

Repository files navigation

VWO Feature Management and Experimentation SDK for .NET

NuGet License

Requirements

  • Works with NetStandard: 2.0 onwards.

Installation

PM> Install-Package VWO.FME.Sdk

Basic usage

Using and Instantiation

using VWOFmeSdk;
using VWOFmeSdk.Models.User;

var vwoInitOptions = new VWOInitOptions
{
    SdkKey = "YOUR_SDK_KEY",
    AccountId = YOUR_ACCOUNT_ID,
};

// Initialize VWO SDK
var vwoInstance = VWO.Init(vwoInitOptions);

// Create VWOContext object
var context = new VWOContext
{
    Id = "user-id",
};

// Get the GetFlag object for the feature key and context
var getFlag = vwoInstance.GetFlag("feature-key", context);

// Get the flag value
var isEnabled = getFlag.IsEnabled();

// Get the variable value for the given variable key and default value
var variableValue = getFlag.GetVariable("variable-key", "default-value");

// Track the event for the given event name and context
var trackResponse = vwoInstance.TrackEvent("event-name", context, eventProperties);

// Send attribute data
vwoInstance.SetAttribute("attribute-key", "attribute-value" , context);

Setting Up development environment

chmod +x start-dev.sh;
bash start-dev.sh;

It will install the git-hooks necessary for commiting and pushing the code.

Running Unit Tests

dotnet test

Authors

Changelog

Refer CHANGELOG.md

Contributing

Please go through our contributing guidelines

Code of Conduct

Code of Conduct

License

Apache License, Version 2.0

Copyright 2024 Wingify Software Pvt. Ltd.