Write `.env` file as part of oauth script
browniebroke opened this issue ยท 6 comments
The recently added oauth.py
script takes you through the OAuth flow to obtain an access token that can be used for development.
At the end, the token needs to be copied manually from the browser window to the .env
file, but actually, the script could do it out of the box.
The contributing guide will need to be updated accordingly.
Hi @browniebroke! I'd love to take a look at this and help out.
Go ahead!
Fantastic! I'll have a crack at it, then ๐
I've had a go at it @browniebroke , does this look like the right way of doing it? I wasn't quite sure which .env file it was writing to https://github.com/Carababusha/deezer-python/blob/%23386-tokeninenv/oauth.py
Yes, that's a great start! Could you please open a pull request? There are a few minor things I would like to suggest, but it's nearly there ๐
Thanks again for taking the time to do that!
Great! Just created the PR ๐