Current period
To see the statistics for your current subscription period -> execute a GET request against the /statistics/current endpoint.
Request
curl --request GET \
--url https://api.digitalsamba.com/api/v1/statistics/current \
--user YOUR_TEAM_ID:YOUR_DEVELOPER_KEY
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpResponse.BodyHandlers;
import java.util.Base64;
import java.util.Map;
String TEAM_ID = "YOUR_TEAM_ID";
String DEVELOPER_KEY = "YOUR_DEVELOPER_KEY";
String authorizationHeader = "Bearer " + Base64.getEncoder().encodeToString((TEAM_ID + ":" + DEVELOPER_KEY).getBytes());
HttpRequest request = HttpRequest.newBuilder()
.GET()
.uri(new URI("https://api.digitalsamba.com/api/v1/statistics/current"))
.header("Authorization", authorizationHeader)
.build();
HttpClient client = HttpClient.newHttpClient();
HttpResponse<String> response = client.send(request, BodyHandlers.ofString());
System.out.println("Status code: " + response.statusCode());
System.out.println("Body: " + response.body());
Response (200 OK)
{
"participation_minutes": 1861,
"live_sessions": 6,
"live_participants": 30,
"active_recorders": 4,
"recorded_minutes": 200,
"captions_minutes": 6,
"stored_recorded_minutes": 257,
"max_active_participants": 120,
"max_active_sessions": 10,
"date_start": "2024-02-17", --start of current subscription period
"date_end": "2024-03-16" --end of current subscription period
}
Last updated