Closed jlejeune closed 6 years ago
What do you think @cenkalti ? I need this method to send downloadable links to another job in charge of downloading files and it's better to get these links directly from lib.
Hello @jlejeune.
Sorry for the delayed answer.
The link itself as returned from your proposed method won't work itself because there is no authentication token in it. You can use get_stream_link
link method if you want to pass it to another workflow.
Let me know if you have further questions.
Agree with you, without token, the download link doesn't work, but the token has to be used to define an instance of Client class, so on customer side, and the lib doesn't have this information. The complete link has to be generated on customer side, concating BASE_URL + /files/
Julien
Le lun. 14 mai 2018 à 15:04, Cenk Altı notifications@github.com a écrit :
Closed #41 https://github.com/cenkalti/putio.py/pull/41.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cenkalti/putio.py/pull/41#event-1624746684, or mute the thread https://github.com/notifications/unsubscribe-auth/ABbH0phyO_pOjLygPiDTxp5fSjWBDPOGks5tyYDRgaJpZM4T45YW .
Hi @jlejeune. I got the notification from GitHub.
What do you mean by "stream_link is not downloadable"?
Hi,
Indeed, It works with stream_link, I can download file with it, my fault. Just little annoying thing is that downloaded file with it doesn't keep the name of the file but its id.
Just a little method to get download url of a File object.