From 85f74aea0f42b45fdc4a637bf7a171e112c1365c Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Sun, 26 Feb 2017 20:11:51 +0100 Subject: [PATCH] Add script to easily fetch new ato/ase pair --- gettoken.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 gettoken.py diff --git a/gettoken.py b/gettoken.py new file mode 100755 index 0000000..ad37cd9 --- /dev/null +++ b/gettoken.py @@ -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) +