jellyfin / jellyfin-apiclient-python

Python API Client for Jellyfin
GNU General Public License v3.0
91 stars 31 forks source link

add usage example to README #12

Closed nburns closed 2 years ago

nburns commented 2 years ago

Hi, I'd like to help improve the docs by adding an example of how to use the API, but I'm having trouble actually getting a connection.

I looked at the examples described and the code and got something kinda working, when I run this example with a correct username and password I get the following in my jellyfin logs

[2022-02-03 15:21:43.709 -08:00] [INF] Authentication request for "jellyfin-nick" has succeeded.
[2022-02-03 15:21:43.709 -08:00] [INF] Current/Max sessions for user "jellyfin-nick": 1/0
[2022-02-03 15:21:43.709 -08:00] [INF] Reissuing access token: "8bb6078dff3e467fb5de18694195cf41"

However, I'm left with a client that's not inited correctly, and was wondering if anyone would be able to help me get a good example setup in the README.