How to get a link to download a file using a script?

  • 1
  • Question
  • Updated 4 weeks ago
I use Citrix Files and I need to automatically get links to the files there. How can you use the script to get a link to download a specific file, in order to then attach this link to the email.
Photo of makhav

makhav

  • 9 Posts
  • 0 Reply Likes

Posted 1 month ago

  • 1
Photo of Luke Skrzypek

Luke Skrzypek, Employee

  • 63 Posts
  • 7 Reply Likes
Depending on your use case, you could use the API to programmatically create a share containing the file you're interested in, or you could use the Items/Download endpoint to get a direct download link for an item.

https://api.sharefile.com/rest/docs/resource.aspx?name=Items
https://api.sharefile.com/rest/docs/resource.aspx?name=Shares

We also provide SDKs for multiple languages to make interacting with the API easier (see the SDKs section on the documentation site above)
(Edited)
Photo of makhav

makhav

  • 9 Posts
  • 0 Reply Likes
Thank you.