zbjdonald / synology-drive-api

Synology drive api python wrapper.
MIT License
71 stars 16 forks source link

connect with Quickconnect link on DSM 7 #11

Open matthieu-michou-wattandsea opened 1 year ago

matthieu-michou-wattandsea commented 1 year ago

Hello

The api works fine with IP on local network 192.168.X.Y Is there a possibility to make it work with quickconnect link from internet ?

I couldn't find the right syntax so far I'm trying NAS_USER = 'mylogin' NAS_PASS = 'mypassword' NAS_path = 'https://quickconnect.to/nasname/drive/' with SynologyDrive(NAS_USER, NAS_PASS, NAS_path, dsm_version='7') as synd:

Thanks

zbjdonald commented 1 year ago

try NAS_path = 'https://nasname.quickconnect.to/' ? What's the final address url in browser after visit 'https://quickconnect.to/nasname/'?

matthieu-michou-wattandsea commented 1 year ago

Hi ! the final address depends from where it is accessed : from local network it is like 192-168-XXX-YYY.nasname.direct.quickconnect.to/drive/ from outside it is nasname.fr2.quickconnect.to/drive/ ( I'm located in France )

What I don't get is that with IP we have to precise the Port. But with Path method we don't tell the Port or suffix "/drive" , so how can it retrieve it ?

zbjdonald commented 1 year ago

em..., my intuition is using the final address. I will enable quickconnet and test it next week.