ahivert/tgtg-python

How to retreive access token

Closed this issue · 2 comments

It seems the access_token property is not set on the client object.

This is causing the user to receive a login email every time the script runs.

Are you using the last release published today, 0.4.0?

Doing something like this should work

from tgtg import TgtgClient

client = TgtgClient(email=<email>, password=<password>)

# first time, it will log in using email and password
client.get_items()

# second time, it will use access token
client.get_items()
stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.