Skip to main content

.NET SDK

Less than 1 minute

.NET SDK

Note

The .NET SDK is under development, and APIs might be changed in later versions. Pull requests are welcomed: https://github.com/gorse-io/Gorse.NETopen in new window

Nuget (with prereleases)open in new windowNugetopen in new window

Install

  • Install via .NET CLI:
dotnet add package Gorse.NET
  • Install via NuGet Package Manager:
NuGet\Install-Package Gorse.NET

Usage

using Gorse.NET;

var client = new Gorse("http://127.0.0.1:8087", "api_key");

client.InsertFeedback(new Feedback[]
{
    new Feedback{FeedbackType="star", UserId="bob", ItemId="vuejs:vue", Timestamp="2022-02-24"},
    new Feedback{FeedbackType="star", UserId="bob", ItemId="d3:d3", Timestamp="2022-02-25"},
    new Feedback{FeedbackType="star", UserId="bob", ItemId="dogfalo:materialize", Timestamp="2022-02-26"},
    new Feedback{FeedbackType="star", UserId="bob", ItemId="mozilla:pdf.js", Timestamp="2022-02-27"},
    new Feedback{FeedbackType="star", UserId="bob", ItemId="moment:moment", Timestamp="2022-02-28"},
});

client.GetRecommend("10");