anicholson / obsidian-google-mail

Fetch emails to Obsidian (as markdown) from Gmail server
55 stars 4 forks source link

Can't configure the plugin #19

Closed nicosomb closed 1 year ago

nicosomb commented 1 year ago

Hello,

I try to install your plugin but I can't. I already use https://github.com/YukiGasai/obsidian-google-calendar from @YukiGasai and it works fine. I created all the stuff in Google API part.

With your plugin , when I click on the "Continue" button (after checking permissions), the page can't go further. The JSON field is ok.

How can I give you more details to help me?

thingnotok commented 1 year ago

Hi, after clicking continue, you shall see a page showing "Authorization successed. You can close this window."

image

Possible issue could be the incorrect url setup in the credential. It should be "http://localhost:9999/oauth2callback", which is different from Yuki's setting (localhost:42813) If this can't solve your problem, maybe you can attach a screen recording video so I can help you with the login problem. 😀

nicosomb commented 1 year ago

Oh, wait, the URL is localhost:42813 because I downloaded the file from the google api section. Where can I find the correct configuration for this file?

thingnotok commented 1 year ago

The callback url can be configured on google console (check step 3: https://github.com/thingnotok/obsidian-google-mail/blob/master/get-cred.md)

The port can still be 42813 (or any other) if you want to use the same credential from Yuki's plugin, but you need to make sure you add the gmail API support.

Or maybe you can try my credential first to make sure if the problem is in credential setting. (https://drive.google.com/file/d/1OZvSuT0YbFYTXWRn_GXq5ZmT7pcF-gwp/view?usp=sharing)

nicosomb commented 1 year ago

It works with your file. I will check my configuration.

nicosomb commented 1 year ago

"Authorization successed. You can close this window." :tada: