We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
thanasis k.
11 years agoNew member | Level 1
create a folder that will be shared and add a member to it
iam using the code below in a java desktop application, in order to create a folder in a dropbox account that i want to be shared, and i am trying to add another member by his email address, but iam ...
thanasis k.
11 years agoNew member | Level 1
thank you a lot Gregory for your support. Now it works for me too. I remove and re-add the libraries, and also i have build the project again, and now it works fine.
Now, iam having problem in the part of the code that adds the member to the folder.
ArrayList<AddMember> list = new ArrayList();
DbxSharing.AddMember a1 = new DbxSharing.AddMember(DbxSharing.MemberSelector.email("xxxxxx@gmail.com"),DbxSharing.AccessLevel.editor);
list.add(a1);
dbxClient.sharing.addFolderMember(md.parentSharedFolderId, list);
i have try to use also md.id, but iam taking an error like that:
com.dropbox.core.v2.DbxSharing$AddFolderMemberException: Exception in add_folder_member: AddFolderMemberError.{".tag":"access_error","access_error":{".tag":"invalid_id"}}
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!