So, I'm new to the dropbox API, and the work has been a giant pain.
Mainly because of the design of the dropbox api and the unusual decisions that were made.
I am writing this in hopes of saving someone else the time it took to find this out.
When you get "400 Bad Request" error when accessing endpoint such as "get current user" or "get usage" ...
The error coming back will be something like "expected null, got body".
You would think that not including any JSON would = null.
But you'd be wrong.
The Dropbox API requires the word "null" as the body of the payload. ITS NOT EVEN SUPPOSED TO BE ENCODED IN JSON. just the string .... null
Is this documented you ask? No, no its not.
Oh yes, and then there is JSON in the headers, that is also severely abnormal.
As a matter of pure feedback, this has been a horrible experience, I can't wait to be done with the integration work.
Besides this, thanks for the API and the ability to integrate Dropbox in our apps.
Tom