ResearchCave.Live.Client (1.0.1)
Published 2026-10-12 19:41:26 +03:00 by admin
Installation
dotnet nuget add source --name ResearchCave --username your_username --password your_token https://git.researchcave.com/api/packages/ResearchCave/nuget/index.jsondotnet add package --source ResearchCave --version 1.0.1 ResearchCave.Live.ClientAbout this package
Typed mobile and service client for ResearchCave Live streams, gifts, and connection grants.
ResearchCave.Live.Client
Typed .NET client for discovering current ResearchCave live streams and obtaining the LiveKit connection grant used by mobile and service applications.
builder.Services.AddResearchCaveLiveClient(builder.Configuration, options =>
{
// Mobile apps normally use the public HTTPS address. Internal services can
// use the service-discovery value from Services:Live:BaseUrl instead.
options.BaseUrl = "https://live.researchcave.com";
options.AccessTokenProvider = cancellationToken => tokenStore.GetAccessTokenAsync(cancellationToken);
});
var firstPage = await liveClient.GetCurrentStreamsAsync(page: 1, pageSize: 20, cancellationToken);
var connection = await liveClient.GetConnectionAsync(firstPage.Items[0].Id, cancellationToken);
var stats = await liveClient.GetBroadcasterStatsAsync(broadcasterUserId, cancellationToken);
The current-stream endpoint is newest-first and only returns sessions whose
status is Live. Page sizes from 1 through 100 are supported. GetConnectionAsync
and all session mutations require a ResearchCave Identity access token.
Dependencies
Details
2026-10-12 19:41:26 +03:00
Assets (2)
Versions (3)
View all
NuGet
1
ResearchCave.Live.Client
20 KiB