Using GetSessionDetailedUsage and GetSessionExtendedDetailedUsage with python 3
Hi. First, I'm not a very experienced python developer.
I would like to discover the data that can be retrieved using GetSessionDetailedUsage and GetSessionExtendedDetailedUsage with python 3. It seems that it won't be possible using a REST client, only with a SOAP client.
I have to admit that I have been drowning in all the documentation, having difficulty finding out what is relevant and what not. But these resources seem relevant:
I used the supplied requirements.txt to install the relevant packages, pip list shows me this:
- appdirs 1.4.4
- attrs 23.1.0
- cached-property 1.5.2
- certifi 2023.5.7
- charset-normalizer 3.1.0
- defusedxml 0.7.1
- idna 3.4
- isodate 0.6.1
- lxml 4.9.2
- pip 23.1.2
- pytz 2023.3
- requests 2.30.0
- requests-toolbelt 1.0.0
- setuptools 64.0.3
- six 1.16.0
- urllib3 1.23
- wheel 0.37.1
- zeep 3.1.0
In the environment I'm an admin, under User Settings -> API Clients I added a client based in Desktop Application.
In the examples folder there are the files stats_report_example.py and usage_example.py, I edited both to add the host (https://xxxxxx.cloud.panopto.eu) and the oauth_token (added the client secret).
Unfortunately I get a list of errors, ending with "Failed to establish a new connection: [Errno 11001] getaddrinfo failed"
Any help is appreciated that helps me understand why I'm not getting it working or that there are better approaches / solutions than this.