Get Share link of uploaded FILE using dot net library

  • 1
  • Question
  • Updated 6 months ago
  • (Edited)

Hi,


Anybody know how to get the public share link of uploaded file in Sharefile?

I can access the folder with this link https://[subdoamin].sharefile.com/f/foada1a1-d54d-4c8f-83d4-5a4afcde242e

same like we have share link to a file https://[subdomain].sharefile.com/d-se8c61584fe94c278

Can anybody help to get these share links by the sharefile Id using ShareFile dot NET library?

Here is my GitHub issue link: https://github.com/citrix/ShareFile-NET/issues/30

Thanks in advance
Photo of Sumesh K.P

Sumesh K.P

  • 1 Post
  • 0 Reply Likes

Posted 7 months ago

  • 1
Photo of Su Sai

Su Sai, Employee

  • 16 Posts
  • 3 Reply Likes
Please refer to http://api.sharefile.com/rest/docs/resource.aspx?name=Shares
For ShareFile dotnet SDK, please refer to https://github.com/citrix/ShareFile-NET#accessing-a-share

You can get list of shares created by the authenticated user

GET https://account.sf-api.com/sf/v3/Shares

Or retrieve specific share with passing ShareID

GET https://account.sf-api.com/sf/v3/Shares(id)

You can also create a new share link using

POST https://account.sf-api.com/sf/v3/Shares?notify=false
{
"ShareType":"Send",
"Title":"Sample Send Share",
"Items": [ { "Id":"itemid01" }, { "Id":"itemid02" } ],
"Recipients":[ { "User": { "Id":"userid" } }, { "User": { "Email": "user@email" } } ],
"ExpirationDate": "2013-07-23",
"RequireLogin": false,
"RequireUserInfo": false,
"MaxDownloads": -1,
"UsesStreamIDs": false
}

Share link can be found in Uri in response body.

Please feel free to let me know if any question.
(Edited)