Using Dropbox Java API for uploading files to dropbox

前端 未结 3 1089
暗喜
暗喜 2020-12-09 14:13

I want to upload files using the java API for DropBox. The following code gets me the oauth_token and oauth_secret. but when ever I try to upload a file I get a exception.

相关标签:
3条回答
  • 2020-12-09 14:39

    You have specified api.getdropbox.com:80 as the host name. Try using api.getdropbox.com instead.

    0 讨论(0)
  • 2020-12-09 14:48

    Your class should NOT be in package com.dropbox.client. Try moving it to a different (i.e. com.yourname.client). It looks like you might be creating a name clash and inadvertently overriding something in the Dropbox client API.

    0 讨论(0)
  • 2020-12-09 14:49

    You should use http-client 4.0.3 jar

    0 讨论(0)
提交回复
热议问题