Skip to main content
Question

Retrieve thumbnail for PDF file with real content

  • November 7, 2024
  • 0 replies
  • 15 views

hjhlarsen
Forum|alt.badge.img

I tried to get all representations of a file like this:

curl https://api.box.com/2.0/files/123?fields=representations \
    -H "authorization: Bearer ACCESS_TOKEN"

I just get the message: no matches found. If I omit ?fields=representations I do get a response, so it looks like ?fields=representations is not working.

I also tried getting a basic thumbnail:

curl -i -X GET "https://api.box.com/2.0/files/12345/thumbnail.png" \
     -H "authorization: Bearer <ACCESS_TOKEN>"

I do get a file, but it’s just a generic image showing the file type.

Is there any way to get a thumbnail that shows some of the actual content of a PDF file?

0 replies

Be the first to reply!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings