svix-webhooks icon indicating copy to clipboard operation
svix-webhooks copied to clipboard

The C# library is missing the new app portal interface that supports the feature flags

Open FlorianHoornaar opened this issue 11 months ago • 0 comments

Feature Request

Motivation

See this code example

var svix = new SvixClient("AUTH_TOKEN", new SvixOptions("https://api.svix.com/"));
var dashboard = await svix.Authentication.AppPortalAccessAsync("app_Xzx8bQeOB1D1XEYmAJaRGoj0", new AppPortalAccessIn{
    featureFlags: new string[] {"beta-feature-a"}
});
// A URL that automatically logs user into the dashboard
Console.WriteLine(dashboard.Url)

The SvixClient class has a property IAuthentication Authentication . However the IAuthentication interface does not have a method AppPortalAccessAsync.

It does have a method GetDashboardAccessAsync which works well, but does not allow to pass feature flags.

Proposal

See this slack thread

FlorianHoornaar avatar Mar 13 '24 16:03 FlorianHoornaar