nborrmann / jodel_api

Unoffical Python Interface to the Jodel API
MIT License
150 stars 33 forks source link

Return android_account in verify so it can be reused #47

Closed zocker1996 closed 6 years ago

zocker1996 commented 6 years ago

Also return android_account in verify since it holds the android_id and secutiry_token. Now we can store them and reuse them later. This is actually suggested in the readme.

zocker1996 commented 6 years ago

An other sulution would have been to store the used android_account as a property of the JodelAccount. This might be a better way since tests should pass again then...

nborrmann commented 6 years ago

I don't like this too much, as it breaks the usual convention of returning a status code + data.

If you want to reuse the account, create it explicitly:

a = jodel_api.AndroidAccount()