OpenTokFs 4.1.0
An unofficial .NET wrapper for Vonage Video API's REST API (written in F#)
Install-Package OpenTokFs -Version 4.1.0
dotnet add package OpenTokFs --version 4.1.0
<PackageReference Include="OpenTokFs" Version="4.1.0" />
paket add OpenTokFs --version 4.1.0
#r "nuget: OpenTokFs, 4.1.0"
OpenTokFs
This is an unofficial .NET wrapper for Vonage Video API's REST API.
The namespace OpenTokFs.Api
, in the main OpenTokFs
project, contains
wrapper functions for all REST API functions.
Each function in OpenTokFs.Api
takes a credentials object as its first
parameter; these types, IProjectCredentials
(used for most API calls) and
IAccountCredentials
(used to create, modify, and delete projects), are
defined in the OpenTokFs.Credentials
project. (You can use the
OpenTokProjectCredentials
and OpenTokAccountCredentials
records in
OpenTokFs
if you don't need to define your own implementations.)
OpenTokFs.RequestTypes
and OpenTokFs.ResponseTypes
define C#
representations of JSON request and response bodies, respectively.
To generate OpenTok session tokens, you can use the module
OpenTokSessionTokens
, which is based on the implementation in the official
OpenTok .NET SDK.
Example code (C#):
var credentials = new OpenTokProjectCredentials(12345, "secret_here");
var all_archives_five_newest = await Api.Archive.ListAsync(
credentials,
new OpenTokPagingParameters(0, OpenTokPageSize.NewCount(5)),
OpenTokSessionId.Any);
var session = await Api.Session.CreateAsync(credentials, new Api.Session.CreationParameters());
var archive = await Api.Archive.StartAsync(
credentials,
new OpenTokArchiveStartRequest(session.Session_id) {
OutputMode = "composed"
});
var other_archives_same_session = await Api.Archive.ListAsync(
credentials,
new OpenTokPagingParameters(0, OpenTokPageSize.Default),
OpenTokSessionId.NewId(session.Session_id));
await Api.Archive.StopAsync(credentials, archive.Id);
OpenTokFs
This is an unofficial .NET wrapper for Vonage Video API's REST API.
The namespace OpenTokFs.Api
, in the main OpenTokFs
project, contains
wrapper functions for all REST API functions.
Each function in OpenTokFs.Api
takes a credentials object as its first
parameter; these types, IProjectCredentials
(used for most API calls) and
IAccountCredentials
(used to create, modify, and delete projects), are
defined in the OpenTokFs.Credentials
project. (You can use the
OpenTokProjectCredentials
and OpenTokAccountCredentials
records in
OpenTokFs
if you don't need to define your own implementations.)
OpenTokFs.RequestTypes
and OpenTokFs.ResponseTypes
define C#
representations of JSON request and response bodies, respectively.
To generate OpenTok session tokens, you can use the module
OpenTokSessionTokens
, which is based on the implementation in the official
OpenTok .NET SDK.
Example code (C#):
var credentials = new OpenTokProjectCredentials(12345, "secret_here");
var all_archives_five_newest = await Api.Archive.ListAsync(
credentials,
new OpenTokPagingParameters(0, OpenTokPageSize.NewCount(5)),
OpenTokSessionId.Any);
var session = await Api.Session.CreateAsync(credentials, new Api.Session.CreationParameters());
var archive = await Api.Archive.StartAsync(
credentials,
new OpenTokArchiveStartRequest(session.Session_id) {
OutputMode = "composed"
});
var other_archives_same_session = await Api.Archive.ListAsync(
credentials,
new OpenTokPagingParameters(0, OpenTokPageSize.Default),
OpenTokSessionId.NewId(session.Session_id));
await Api.Archive.StopAsync(credentials, archive.Id);
Release Notes
Add ability to set an archive storage target (Azure only; AWS not yet supported)
Dependencies
-
.NETStandard 2.0
- FSharp.Control.AsyncSeq (>= 2.0.21)
- FSharp.Core (>= 5.0.0)
- Newtonsoft.Json (>= 12.0.3)
- OpenTokFs.Credentials (>= 4.0.1)
- OpenTokFs.RequestTypes (>= 4.0.1)
- OpenTokFs.ResponseTypes (>= 4.0.1)
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version History
Version | Downloads | Last updated |
---|---|---|
4.1.0 | 93 | 12/31/2020 |
4.0.1 | 97 | 9/28/2020 |
4.0.1-b3 | 69 | 9/28/2020 |
4.0.0-a2 | 141 | 4/17/2020 |
4.0.0-a1 | 157 | 4/13/2020 |
3.1.1-b2 | 296 | 4/4/2020 |
3.1.1-b1 | 333 | 4/4/2020 |
3.1.0 | 179 | 1/28/2020 |
2.1.2 | 182 | 10/4/2019 |
2.1.1 | 169 | 10/3/2019 |
2.1.0 | 192 | 7/15/2019 |
2.0.1 | 190 | 7/15/2019 |
2.0.0 | 193 | 7/11/2019 |
1.0.1 | 195 | 7/11/2019 |
1.0.0 | 205 | 7/10/2019 |
0.1.1 | 203 | 7/8/2019 |
0.1.0 | 206 | 7/8/2019 |