Updated on 2023-06-21 GMT+08:00

Querying a Stream List

Initialize a DIS SDK client instance as instructed in Initializing a DIS SDK Client Instance.

Configure the following parameter:

1
start_stream_name = ""  #Leave unspecified or set to an existing stream name.

Run the listStream_sample.py file to call listStream_test. If response code 200 is returned, the stream list is displayed.

The following is an example response:

1
2
200
{'stream_names': ['dis-jLGp', 'dis-w_p', 'dis_test1', 'dis_test2'], 'has_more_streams': False, 'total_number': 4}