Add login to example
This commit is contained in:
parent
7e3584d5ee
commit
c5d4677aab
@ -22,6 +22,9 @@ if __name__ == '__main__':
|
||||
# Get an API instance
|
||||
api = FAAPI()
|
||||
|
||||
# Log in
|
||||
api.login()
|
||||
|
||||
# Get the user we've authenticated as
|
||||
user = api.get_user(api.username)
|
||||
if not user:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user