cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Known issues updated. Learn more
Highlighted

How to get file content using rest api?

How to get file content using rest api ?

 

5 Replies
Dropboxer

Re: How to get file content using rest api?

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...
Dropboxer

Re: How to get file content using rest api?

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...
Dropboxer

Re: How to get file content using rest api?

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...
Who's talking
Top contributors to this post