There's a code example for calling this endpoint using curl in the documentation, and you can also generate some code for calling it using the API v2 Explorer.
If something isn't working as expected, please share the code you're using and the unexpected error or output.
The error is indicating that you're trying to parse some data as JSON, but the data isn't in a valid JSON format, so the parsing is failing.
I don't see anything that mentions Dropbox in the error screenshot, nor do I see anywhere that the stack trace in the error that references the code you posted, so I can't offer much insight. You'll need to debug your app more to track down where/why this is occuring.
Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.
Not the right discussion for you? Find out what else our Community has to say about Developer & API Discussions.
Or, search our Help Center for even more.