SDKs
Available
C#
Add the Loams NuGet package and make the first call from .NET.
One LoamsClient with namespaced modules over the unified Connect API. It targets net8.0, speaks Connect over System.Net.Http, and its only dependency is Google.Protobuf.
Examples: github.com/ostrium-labs/loams-csharp · Source: sdks/csharp
Install
dotnet add package Loams --version 0.1.0Quickstart
using Loams;
using Loams.Instance.V1;
await using var client = new LoamsClient(new LoamsClientOptions
{
Endpoint = Environment.GetEnvironmentVariable("LOAMS_ENDPOINT")!, // http://127.0.0.1:8080 for `loams dev`
Auth = new EnvTokenSource(), // reads LOAMS_API_KEY
});
// The first call any client makes: what this instance is, and no auth.
var info = await client.Instance.GetInstanceAsync(new GetInstanceRequest());
Console.WriteLine($"{info.Name} serves {string.Join(", ", info.ApiVersions)}");Collections and hybrid search are not in the SDK facade in 0.1.0; call the REST API with HttpClient.