twitools/gettoken.py

13 lines
181 B
Python
Raw Normal View History

#!/usr/bin/env python3
import twitools
try:
ato, ase = twitools.twoHelper().authenticate()
except:
print("Authentication failed.")
print("ato=%s" % ato)
print("ase=%s" % ase)