2024-01-13 12:10:03 +01:00

13 lines
278 B
Python

import json
from tgtg import TgtgClient
from .config import config, CREDFILE
def main():
client = TgtgClient(email=config['email'])
credentials = client.get_credentials()
with open(CREDFILE, 'w') as f:
print(credentials)
json.dump(credentials, f)