Skip to main content

Stream


List streams

Get a list of streams.

const response = await geocore.Stream.find({
isLive: boolean,
placeName: string,
userId: string,
startRange: {
start: "2025-01-01",
end: "2025-01-01",
}
endRange: {
start: "2025-01-01",
end: "2025-01-01",
}
page: 1,
limit: 10,
});

Prerequisites

Successfully get the IdToken with companyAdmin, groupAdmin or user access level from login API.

Parameters

nametypedata typedescription
isLiveoptionalbooleanStream is currently live
placeNameoptionalstringSearch by stream place name
userIdoptionalstringSearch by user started the stream
startRange[start]optionaldateSearch by startTime timestamp
startRange[end]optionaldateSearch by startTime timestamp
endRange[start]optionaldateSearch by endTime timestamp
endRange[end]optionaldateSearch by endTime timestamp
pageoptionalnumberPage ordinal number
limitoptionalnumberNumber of records per page
Get stream token

Get stream token.

const response = await geocore.Stream.getToken({
hostId: "hostId",
});

Prerequisites

Successfully get the IdToken with companyAdmin, groupAdmin or user access level from login API.

Parameters

nametypedata typedescription
hostIdrequiredstringHost user ID
Create stream

Create a stream.

const response = await geocore.Stream.create({
placeId: "string",
});

Prerequisites

Successfully get the IdToken with companyAdmin, groupAdmin or user access level from login API.

Parameters

nametypedata typedescription
placeIdrequiredstringStream place ID
Start recording

Start stream recording.

const response = await geocore.Stream.startRecording({
streamId: "string",
});

Prerequisites

Successfully get the IdToken with companyAdmin, groupAdmin or user access level from login API.

Parameters

nametypedata typedescription
streamIdrequiredstringStream ID
Stop recording

Stop stream recording.

const response = await geocore.Stream.stopRecording({
streamId: "string",
});

Prerequisites

Successfully get the IdToken with companyAdmin, groupAdmin or user access level from login API.

Parameters

nametypedata typedescription
streamIdrequiredstringStream ID
Update API key

Update an API key.

const response = await geocore.ApiKey.update(
streamId,
{
isLive: boolean,
}
);

Prerequisites

Successfully get the IdToken with companyAdmin, groupAdmin or user access level from login API.

Parameters

nametypedata typedescription
streamIdrequiredstringStream ID
isLiveoptionalstringStream is currently live or not