cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Not happy with your Spotify Wrapped? Check out how Kevin on the Dropbox team used Paper to make sure he keeps discovering new music over here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
1
Ask
2
Reply and help

Documentatation Links are broken! .NET SDK

Documentatation Links are broken! .NET SDK

amfpaulo
New member | Level 2

Hey guys I am trying to do something that I thought it will be very easy, but the lack of documentation and confusing error messages is make this almost impossible for me, could be also my lack of knowledge. All suggestions links on this forum are giving me 404 error. Anyways, here is my problem:

 

I am using .NET SDK

PackageReference Include="Dropbox.Api" Version="6.36.0"

 

What I want to do is:

 

- Create a folder

- Share this folder with another dropbox account (not member of my team)

 

here is my code:

 

var folder = await dbx.Files.CreateFolderV2Async("/newfolder");

var folderId = dbx.Sharing.ShareFolderAsync(
new Dropbox.Api.Sharing.ShareFolderArg(
"/newfolder",
new Dropbox.Api.Sharing.AclUpdatePolicy().AsEditors,
false,
null,
null,
null,
null,
null, //new List<Dropbox.Api.Sharing.FolderAction> { new Dropbox.Api.Sharing.FolderAction().AsEditContents },
new Dropbox.Api.Sharing.LinkSettings(new Dropbox.Api.Sharing.AccessLevel().AsEditor
))).Result.AsComplete.Value.SharedFolderId;

await dbx.Sharing.AddFolderMemberAsync(
new Dropbox.Api.Sharing.AddFolderMemberArg(folderId, new List<Dropbox.Api.Sharing.AddMember>
{
new Dropbox.Api.Sharing.AddMember (new Dropbox.Api.Sharing.MemberSelector.Email("any@email.com") )
}));

 

If I use :

 

var folderId = dbx.Sharing.ShareFolderAsync(
new Dropbox.Api.Sharing.ShareFolderArg("/Course1234569") )

 

it worked, however the folder is ready only for the email I shared with.

 

I need the person I shared the folder with having Editor access (Can read and write)

 

Please Help.

1 Reply 1

Re: Documentatation Links are broken! .NET SDK

Greg-DB
Dropboxer

Apologies for the trouble with the documentation. You can find the latest documentation for the .NET SDK here.

 

For instance, here's the link for CreateFolderV2Async, for ShareFolderAsync, and for AddFolderMemberAsync.

 

If you want to add a member as an editor, you should set AccessLevel.Editor.Instance as the accessLevel in the AddMember.

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?