Reusing token
stevenklar opened this issue · comments
After testing and try automating some collecting process, I received a "too many requests" response. Which most likely is caused because on every action there is a new login. Instead of login again all the time.
I could not find any option to reuse the given token.
Possible ways come initially in my mind:
- local n26 config (not for the initial credentials, still security related for the amount of token time to live)
- set a temporary environment variable
- output the token with a copy string example like
N26_TOKEN=xxx ... cmd
I like the first one more. Most likely users of this code will use it in a safer (local?) environment only. Nobody should use this at any risky environment anyway.
Thanks for the report. I agree, I've been thinking on how to implement this, something like your first idea should work well :) Hope I find the time to implement this soon.