Querying an Application List

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

The Applist_sample.py file provides a code sample. Configure the following parameter in this file:

1
appname="app1"  #Application name. The application list is returned from the current stream and does not contain the application.)

After configuring the parameter, run the Applist_sample.py file to call Applist_test.

The following is an example response:

1
2
200
{'total_number': 2, 'apps_list': ['app1'], 'appinfo_list': [{'create_time': 1532425956631, 'app_id': 'OPKQuggQVtfqhyvK0cs', 'app_name': 'app1'}], 'has_more_app': False}