libninjacom / gmail-rs

MIT License
2 stars 2 forks source link

GmailClient::from_env() can't read .env file? #1

Open mccombs opened 3 months ago

mccombs commented 3 months ago

Using the get_profile.rs example: https://github.com/libninjacom/gmail-rs/blob/33f26fd50b920bb6c5a54aed334ab4eb08281201/examples/get_profile.rs

Will return the following error calledResult::unwrap()on anErrvalue: NotPresent

I'm currently using https://developers.google.com/oauthplayground to test so I have both a refresh and access token listed in my .env (GMAIL_ACCESS_TOKEN and GMAIL_REFRESH_TOKEN) but they are not recognized?