cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Known issues updated. Learn more

February contest: Post your Paper workflow to win a Dropbox t-shirt and tote bag!
Highlighted

How to get file content using rest api?

How to get file content using rest api ?

 

5 Replies

Re: How to get file content using rest api?

Dropboxer

To access file content via the Dropbox API, you should use the /2/files/download endpoint.

Reply
Loading...

Re: How to get file content using rest api?

Hi,

 

Please provide me one of example because i tried with same API it did not give me files content

Reply
Loading...

Re: How to get file content using rest api?

Dropboxer

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.

Reply
Loading...

Re: How to get file content using rest api?

Hi,

i am getting content like this in error.

Please suggest me if i am doing something wrong.

code.pngerror.png

Reply
Loading...

Re: How to get file content using rest api?

Dropboxer

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. 

Reply
Loading...
Developer & API Discussions

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.

Who's talking
Top contributors to this post