Dropbox PostUrl Save_Url

Dropbox PostUrl Save_Url

Good day Im trying to figure out a PostUrl to save a url file into a dropbox account, but I got a 400 sintax error, I try to do the same curl dropbox example with a postUrl, I try always encoding the url param. What I should doing wrong?

-H "Authorization: Bearer <ACCESS TOKEN>"
  1. headerMap = {"Authorization": "Bearer <MY TOKEN>", "url": "https://dl.dropboxusercontent.com/s/deroi5nwm6u7gdf/advice.png"};
  2. Respuesta = postUrl("https://api.dropbox.com/1/save_url/auto/API/downloaded.png",headerMap,false);
  3. alert Respuesta;