lasuillard / raindrop-sync-chrome

Chrome browser extension for syncing bookmarks with Raindrop.
GNU General Public License v3.0
20 stars 1 forks source link

Docs for initial setup? #53

Closed labithiotis closed 4 months ago

labithiotis commented 4 months ago

@lasuillard It would be handy to include some basic docs for the setup process.

I assume we need to create an application in Raindrop to acquire a Client Id, Client Secrete and a Token.

However, it's not clear what the redirect URI should be for the application. I tried localhost and https://.chromiumapp.org but all changes resulted in Error: Request failed with error: Incorrect redirect_uri when registering in the extension for syncing.

lasuillard commented 4 months ago

Thank you for your interest on this project. I could now can afford some time for this project recently, I definitely take consideration of your suggestion.

Until I update the documentation, you could check below image (my test app configuration) for a quick reference:

image

The Chrome extension ID (https://<EXTENSION_ID>.chromiumapp.org) may differ based on extension's source directory, as it's how it is generated.

Or, you could just copy and paste the Test token to Access Token field directly, without having to go through OAuth authorization step.

labithiotis commented 4 months ago

@lasuillard Thanks for the rapid response, this is exactly what I did but when you click register within the extension options and you get the auth popup and complete the flow I get an error about the redirect url being invalid.

Oh the issue was I was missing a forward slash, so url needs to be https://<EXTENSION_ID>.chromiumapp.org/ not https://<EXTENSION_ID>.chromiumapp.org

Also seems like syncing is not working as I expected, it generates all new bookmarks in another folder each time I click sync.

image

lasuillard commented 4 months ago

Well, in fact, this project is at an early stage, and I made the sync work like that for testing purposes only, not to break any existing bookmarks due to poor implementation.

I will keep trying to make improvements, but for now, it's not ready for practical use. 🥲

labithiotis commented 4 months ago

@lasuillard That's cool and I understand, I assumed with 11 stars this project was a little more "complete". I will have a look at https://github.com/lasuillard/raindrop-sync-chrome/blob/main/src/lib/chrome/bookmark.ts#L9 in my spare time to see if we can enhance that logic to actually "sync"