I am trying to access my files, through generating shared url, which I managed to do using python for my website. I am trying to implement an iframe 3d model viewer, which require a certain file with dxf or dwg extension, which typically generated from CAD file. However, when I provide the url and change the dl=1 or use raw=1, as shown below:
I also looked at the dropbox documents regarding to embedding files--that didn;t help me much because it uses dropbox to view the files. my iframe require using a certain viewer which only need direct access to the file.
Is there a better way to access and provide a driect link to the file, to view the model?
Using the raw=1 parameter, as documented here, is the right way to get direct access to the file content from a shared link like this. It sounds like that's not working for you though. Are you getting any particular error or unexpected output?
Note that the client will need to be able to follow redirects, so if your viewer doesn't support that, that may be the issue.
Many thanks for your prompt response, much appreciated. I tried using the temporary link but with no success, the viewer keep showing me the loading page but the status never change. I guess I have to dig deeper to find out what is not working.
I just noted while using files_get_temporary_link will generate a link with other metadata. Is there a direct method to only retrieve the temporary link as str?
No, there isn't another call like that with a string returned directly. You should access the string in the returned GetTemporaryLinkResult.link field. Does accessing that field not work in your environment for some reason?