Learn how to make the most out of the Dropbox Community here 💙.
Forum Discussion
solsupp
7 years agoExplorer | Level 3
Folders
I am surrently using:
Private Shared Sub FileUploadToDropbox(ByVal filePath As String, ByVal fileName As String, ByVal fileSource As String) Dim dbx = New DropboxClient("<REDACTED>") ...
Greg-DB
Dropbox Staff
7 years agoTo share a folder with a specific Dropbox account using the .NET SDK, you should use ShareFolder to share the folder (once per folder), and then AddFolderMember to invite member(s) to the folder.
By the way, I redacted it from your post, but for the sake of security, you should disable the access token that you posted. You can do so by revoking access to the app entirely, if the access token is for your account, here, or, you can disable just this access token using the API, e.g., using TokenRevoke.
solsupp
7 years agoExplorer | Level 3
How do I add a member
members As IEnumerable(Of AddMember),
- Greg-DB7 years ago
Dropbox Staff
That would look something like this:
var members = new[] { new AddMember(new MemberSelector.Email("email@example.com")) }; await this.client.Sharing.AddFolderMemberAsync(sharedFolderId, members);
- solsupp7 years agoExplorer | Level 3
Dim myMembers = New AddMember(New MemberSelector.Email("EMAILADDERESS"), Nothing)
dbx.Sharing.AddFolderMemberAsync((filePath + ("/" + fileName)), myMembers, False, "Docs UPloaded")Seem to get an error, not sure what to do here:
Error BC30512 Option Strict On disallows implicit conversions from 'AddMember' to 'IEnumerable(Of AddMember)'.Even casting to 'IEnumerable(Of AddMember)' causes error
Can you help
- Greg-DB7 years ago
Dropbox Staff
The 'members' parameter does require a IEnumerable<AddMember>, but it appears you're only supplying a AddMember, not in an IEnumerable.
I'm not a Visual Basic expert, but I believe you can build it like this:
Dim myMembers() as AddMember = {New AddMember(New MemberSelector.Email(emailAddress), Nothing)}
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,966 PostsLatest Activity: 14 hours ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!