N4S4 / synology-api

A Python wrapper around Synology API
MIT License
360 stars 137 forks source link

is it possible to access synology using this wrapper from public/making request from browser? #152

Closed fazriachyar closed 5 months ago

fazriachyar commented 5 months ago

I'm attempting to integrate this Synology wrapper into a web application to access my Synology device directly from the browser. I'd like to confirm if this wrapper is designed for client-side usage. Are there any specific configuration steps needed to make this work within a browser environment?

N4S4 commented 5 months ago

Hello,

Yes I can confirm this is a client side wrapper. I am sure that with some work you will be able to use it in the browser. No specific steps other than what is written in the readme file. Bear on mind that some functions might not work as expected. May I ask what is making you use this wrapper for browser use instead of the built in synology DSM?

fazriachyar commented 5 months ago

Hello,

Yes I can confirm this is a client side wrapper. I am sure that with some work you will be able to use it in the browser. No specific steps other than what is written in the readme file. Bear on mind that some functions might not work as expected. May I ask what is making you use this wrapper for browser use instead of the built in synology DSM?

Dear N4S4,

Thanks for confirming about the client-side wrapper. I'm excited to get it working for the browser, even if it needs a little tweaking. As for why I'm looking at this instead of the built-in DSM, the main thing is this:

QuickConnect Redirect Issues: Whenever I use QuickConnect for the API calls using Axios On ReactJS, it keeps redirecting me to some HTML page instead. That messes with what I'm trying to do. The Plan: I want to bring some of the Synology stuff right into my custom web interface for a smoother experience. This wrapper seems like the way to get around those QuickConnect redirects.

Let me know if you have any tips or tricks for dealing with the redirection problem in the built-in DSM – I'd love to try alternative solutions!

Cheers, Fazri Achyar