From 9a4e860d1340eb62aa6929b8061ac112d560b299 Mon Sep 17 00:00:00 2001 From: Michael Shepanski Date: Tue, 12 Apr 2016 09:41:48 -0400 Subject: [PATCH] Update README.md --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index b7582682..fb8e7ca7 100644 --- a/README.md +++ b/README.md @@ -26,17 +26,6 @@ from plexapi.server import PlexServer plex = PlexServer() # Defaults to localhost:32400 ``` -If you want to avoid logging into MyPlex and you already know your auth token -string, you can use the PlexServer object directly as above, but passing in -the baseurl and auth token directly. - -```python -from plexapi.server import MyPlexAccount -baseurl = 'http://plexserver:32400' -token = '2ffLuB84dqLswk9skLos' -plex = PlexServer(baseurl, token) -``` - 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: Servername below is the name of the server (not the hostname and port). If @@ -49,6 +38,17 @@ account = MyPlexAccount.signin('', '') plex = account.resource('').connect() # returns a PlexServer instance ``` +If you want to avoid logging into MyPlex and you already know your auth token +string, you can use the PlexServer object directly as above, but passing in +the baseurl and auth token directly. + +```python +from plexapi.server import MyPlexAccount +baseurl = 'http://plexserver:32400' +token = '2ffLuB84dqLswk9skLos' +plex = PlexServer(baseurl, token) +``` + #### Usage Examples ####