简体   繁体   English

Dropbox API帮助

[英]Dropbox API help

I have downloaded the Objective-C api from here (the one on their site is for iOS) however I am getting an "Invalid signature. Expected signature base string:" error when I try to upload a file. 我已经从这里下载了Objective-C api(他们网站上的那个是针对iOS的),但是当我尝试上传文件时出现“无效签名。期望的签名基字符串:”错误。 I can login just fine, but it's just uploading that doesn't work. 我可以很好地登录,但是仅上传不起作用。 From looking around it seems to be an oauth problem. 从周围看,这似乎是一个oauth问题。 How can I fix it or where is there a wrapper that works with osx out of the box? 我该如何修复它,或者在哪里可以使用osx的包装器?

The DropboxSDK repository you referred to looks old. 您引用的DropboxSDK存储库看起来很旧。 You should get the release SDK from https://www.dropbox.com/developers/releases 您应该从https://www.dropbox.com/developers/releases获得发行版SDK。

I had the same issue. 我遇到过同样的问题。
Login is fine, but upload generated invalid signature error. 登录正常,但上传会生成无效的签名错误。

I was calling: 我在打电话:

[self.restClient uploadFile:filename toPath:nil fromPath:fromPath];

In my case I have to always specify toPath(@"") attribute even if I specify root directory. 就我而言,即使我指定了根目录,我也必须始终指定toPath(@"")属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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