You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to store the contents of my gmail token and client secret files in a .env.
Has anyone had any success doing this because my current plan was to import dotenv to simplegmail.gmail and inside the Gmail() class change the current client_secret_file: and creds_file: str from their current values to those from the .env but I'm having no luck and think it might be down to the fact that they're json and not strings.
Can anyone point me in the direction of fixing this? (Or indeed to a better method if one exists).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey all,
I've been trying to store the contents of my gmail token and client secret files in a .env.
Has anyone had any success doing this because my current plan was to import dotenv to simplegmail.gmail and inside the Gmail() class change the current client_secret_file: and creds_file: str from their current values to those from the .env but I'm having no luck and think it might be down to the fact that they're json and not strings.
Can anyone point me in the direction of fixing this? (Or indeed to a better method if one exists).
Beta Was this translation helpful? Give feedback.
All reactions