List
Request (listing all sessions)
curl --request GET \
--url https://api.digitalsamba.com/api/v1/sessions \
--user YOUR_TEAM_ID:YOUR_DEVELOPER_KEYimport com.fasterxml.jackson.databind.ObjectMapper;
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/sessions"))
.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)
{
"total_count": 8096,
"data": [
{
"id": "edb7a1cb-0627-44ed-9ae4-62a344d6e8a9",
"start_time": "2024-03-27 08:15:36",
"room_id": "95d36f70-a35e-4547-a9da-4f8c013c2874",
"room_external_id": null,
"description": null,
"friendly_url": "MyWebinar",
"room_is_deleted": false,
"participants_max": 200,
"participants_live": 150,
"participants_total": 300,
"live": true --If the session is still running, then end_time will be null
},
{
"id": "f875d3dd-1cf8-421e-930a-927cce0bf9dd",
"start_time": "2024-03-27 08:15:36",
"end_time": "2024-03-27 08:27:38",
"room_id": "87a5d383-9e79-44ea-b382-686e430f4ecc",
"room_external_id": null,
"description": null,
"friendly_url": "DailyEnglishLessons",
"room_is_deleted": false,
"participants_max": 3,
"participants_live": 0,
"participants_total": 3,
"live": false
},
...............98 more sessions...............
]
} Request (get a concrete session)
Response (200 OK)
Last updated