Add script to easily fetch new ato/ase pair
This commit is contained in:
parent
ece96ca690
commit
144b1e0804
1 changed files with 12 additions and 0 deletions
12
gettoken.py
Executable file
12
gettoken.py
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import twitools
|
||||
|
||||
try:
|
||||
ato, ase = twitools.twoHelper().authenticate()
|
||||
except:
|
||||
print("Authentication failed.")
|
||||
|
||||
print("ato=%s" % ato)
|
||||
print("ase=%s" % ase)
|
||||
|
Loading…
Reference in a new issue