Add the Freebox OS services with the AddFreeboxOSAPI
extension method :
services.AddFreeboxOSAPI();
Call the IFreeboxOSClient.InitAsync
method to search the Freebox :
await services.GetRequiredService<IFreeboxOSClient>().InitAsync();
Then, use the ITVApi
interface :
var tv = services.GetRequiredService<ITVApi>();
var packages = await tv.GetPackagesAsync();
var numberedChannels = await tv.GetChannelsAsync(packages.First());
You can look at the test sample.