From f98dfc7cfc114144451523fc262775182c440ff1 Mon Sep 17 00:00:00 2001 From: DarkCat09 Date: Thu, 1 Jun 2023 17:59:33 +0400 Subject: [PATCH] Readme: example updated --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 838acf1..095db49 100644 --- a/README.md +++ b/README.md @@ -79,17 +79,20 @@ Here is an example how to use the API: from python_aternos import Client # Create object -aternos = Client() +atclient = Client() # Log in # with username and password -aternos.login('example', 'test123') +atclient.login('example', 'test123') # ----OR---- # with username and MD5 hashed password -aternos.login_hashed('example', 'cc03e747a6afbbcbf8be7668acfebee5') +atclient.login_hashed('example', 'cc03e747a6afbbcbf8be7668acfebee5') # ----OR---- # with session cookie -aternos.login_with_session('ATERNOS_SESSION cookie value') +atclient.login_with_session('ATERNOS_SESSION cookie value') + +# Get AternosAccount object +aternos = atclient.account # Get servers list servs = aternos.list_servers()