Update README.md

This commit is contained in:
Michael Shepanski 2016-10-30 17:16:57 -04:00 committed by GitHub
parent aa37f1b434
commit 5057fce4b6

View file

@ -16,15 +16,7 @@ Python bindings for the Plex API.
#### Getting a PlexServer Instance ####
There are three types of authentication. If running the PlexAPI on the same
network as the Plex Server (and you are not using Plex Users), you can
authenticate without a username and password. Getting a PlexServer
instance is as easy as the following:
```python
from plexapi.server import PlexServer
plex = PlexServer() # Defaults to localhost:32400
```
There are three types of authentication.
If you are running on a separate network or using Plex Users you can log
into MyPlex to get a PlexServer instance. An example of this is below. NOTE:
@ -49,6 +41,16 @@ token = '2ffLuB84dqLswk9skLos'
plex = PlexServer(baseurl, token)
```
`NO LONGER WORKING ON LATEST VERSION OF PLEX` (see bug #68) If running the PlexAPI
on the same network as the Plex Server (and you are not using Plex Users), you can
authenticate without a username and password. Getting a PlexServer instance is as
easy as the following:
```python
from plexapi.server import PlexServer
plex = PlexServer() # Defaults to localhost:32400
```
#### Usage Examples ####