简体   繁体   中英

Dropbox copy file to another account not working in C# using Dropbox.NET SDK API v2

I'm trying to copy a file from a dropbox account to another account. I'm trying the below code-

var client = new DropboxClient("c4zvSWqce");
await client.Files.CopyReferenceSaveAsync(strCopyRef, Path);

The CopyReference value is looking correctly but calling CopyReferenceSaveAsync showing error "no_permission". Please see the attachment. I couldn't find the reason for this error. Any help will be appreciated.

在此处输入图片说明

The documentation gives the following definition for that error:

no_permission Void You don't have permission to save the given copy reference. Please make sure this app is same app which created the copy reference and the source user is still linked to the app.

Perhaps the access tokens you're using (for source and destination) are not for the same app?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM