Dropbox 核心 API copy_ref 显示 (404) Not Found 错误
Dropbox core API copy_ref showing (404) Not Found error
我想将文件从 Dropbox 复制到另一个用户的 Dropbox。
我正在调用 Dropbox 核心 API v1 copy_ref 以获得类似
的响应
RequestResult strReq = OAuthUtility.Get
(
"https://api.dropboxapi.com/1/copy_ref/auto",
new HttpParameterCollection
{
{"access_token", "AccessToken"},
{"path", Path.Combine("CurrentPath", "FileName").Replace("\", "/")}
}
);
显示错误 "The remote server returned an error: (404) Not Found"
找不到哪里出错了
您正在向 https://api.dropboxapi.com/1/copy_ref/auto
发出 HTTP 请求,但它应该是 https://api.dropboxapi.com/1/copy_ref/auto/path/to/the/file
。 (然后您应该删除在 HttpParameterCollection
中使用的 path
参数。)
(请参阅此处的文档:https://www.dropbox.com/developers-v1/core/docs#copy_ref。)
我想将文件从 Dropbox 复制到另一个用户的 Dropbox。 我正在调用 Dropbox 核心 API v1 copy_ref 以获得类似
的响应RequestResult strReq = OAuthUtility.Get
(
"https://api.dropboxapi.com/1/copy_ref/auto",
new HttpParameterCollection
{
{"access_token", "AccessToken"},
{"path", Path.Combine("CurrentPath", "FileName").Replace("\", "/")}
}
);
显示错误 "The remote server returned an error: (404) Not Found" 找不到哪里出错了
您正在向 https://api.dropboxapi.com/1/copy_ref/auto
发出 HTTP 请求,但它应该是 https://api.dropboxapi.com/1/copy_ref/auto/path/to/the/file
。 (然后您应该删除在 HttpParameterCollection
中使用的 path
参数。)
(请参阅此处的文档:https://www.dropbox.com/developers-v1/core/docs#copy_ref。)