Add script to easily fetch new ato/ase pair
This commit is contained in:
parent
5e18f49f85
commit
85f74aea0f
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