Skip to content

place.stream.live.getSegments

Lexicon Version: 1

Type: query

Get a list of livestream segments for a user

Parameters:

NameTypeReq’dDescriptionConstraints
userDIDstringThe DID of the potentially-following userFormat: did
limitintegerMin: 1
Max: 100
Default: 50
beforestringFormat: datetime

Output:

  • Encoding: application/json
  • Schema:

Schema Type: object

NameTypeReq’dDescriptionConstraints
segmentsArray of place.stream.segment#segmentView

{
"lexicon": 1,
"id": "place.stream.live.getSegments",
"defs": {
"main": {
"type": "query",
"description": "Get a list of livestream segments for a user",
"parameters": {
"type": "params",
"required": ["userDID"],
"properties": {
"userDID": {
"type": "string",
"format": "did",
"description": "The DID of the potentially-following user"
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 50
},
"before": {
"type": "string",
"format": "datetime"
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"properties": {
"segments": {
"type": "array",
"items": {
"type": "ref",
"ref": "place.stream.segment#segmentView"
}
}
}
}
}
}
}
}