Hi Pascal,
Currently, there's no way to get a permanent download url to a file. The download urls provided by the API mentioned are preauthorized, user-specific and have a limited lifetime - so they can not be shared.
The shares are always first launched in the browser, as they may require user authentication.
Just curious, what is the exact use case you're trying to implement?
Thanks,
Veni