https://api.dropboxapi.com/1/save_url/auto/Parts Information Database/2.0 Parts Books/BACKHOE MANUALS/ALLIS CHALMERS BACKHOE MANUALS/615 PM #1008928.PDF?access_token=***&url=http://www.minnpar.com/partbooks/BACKHOE%20MANUALS/ALLIS%20CHALMERS%20BACKHOE%20MANUALS/615%20PM%20%231008928.PDF
{"error": "Call requires one of the following methods: POST, OPTIONS. Got GET."}
The /1/save_url endpoint doesn't support the GET method, so you should use the POST method to call this endpoint.
Exactly how you change what method you're using will depend on your HTTP client. For example, with curl on the command line you would supply the option "-X POST".
curl https://api.dropbox.com/1/save_url/auto/615 PM #1008928.PDF -durl="http://www.minnpar.com/partbooks/BACKHOE%20MANUALS/ALLIS%20CHALMERS%20BACKHOE%20MANUALS/615%20PM%20%231008928.PDF" -H "Authorization: Bearer auth_token_key"
{"status": "PENDING", "job": "jP-lTIF5fVAAAAAAAAAAZA"}curl: (6) Could not resolve host: PMcurl: (6) Could not resolve host: #1008928.PDF
You need to URI escape your parameters. In your sample, you're not escaping the whitespace in the destination, which is breaking up the pieces you're giving to curl, corrupting the command. That is, curl thinks you mean "PM" is another host you want to connect to.
Your curl command should probably look something like:
curl "https://api.dropbox.com/1/save_url/auto/615 PM #1008928.PDF" \ -H "Authorization: Bearer auth_token_key" \ -d url="http%3A%2F%2Fwww.minnpar.com%2Fpartbooks%2FBACKHOE%2520MANUALS%2FALLIS%2520CHALMERS%2520BACKHOE%2520MANUALS%2F615%2520PM%2520%25231008928.PDF"
Thank you it's working.
Still I have some doubts
1) Can I upload a folder which contains sub folders and files via API ?
Because drag & drop method is not working on website interface.
2) Can I upload a file to other dropbox account via API?
Thank you
1) The /save_url endpoint only supports individual files, but you can call it repeatedly to save multiple files. Also, any parent folders that don't exist in the paths you specify will automatically get created.
2) You can make API calls to whatever accounts you have access tokens for.