/
media/get/{token}

media/get/{token}

Many methods in the API that download or generate files, do not send back the file immediately. Instead they return a "token". The present method permits to fetch the actual file for the token.

NOTE: The HTTP response is configured so that a browser would download the file with a file name. See also: media/get/{token}/stream

URL

(GET) /api/media/get/{token}


PARAMETERS

token

The reference token of file.


RESULTS

The file as an attachment, see below.

The HTTP response header includes:

  • The Content-Type (such as "text/xml")
  • The Content-Disposition set to "attachment" and including the file name


ALTERNATIVE METHOD

If you want to have a browser show the file inline, use this method instead: media/get/{token}/stream




Related content

media/get/{token}/stream
media/get/{token}/stream
More like this
order/{orderid}/files/all/zip
order/{orderid}/files/all/zip
Read with this
media/filescollection/{key}/items/file
media/filescollection/{key}/items/file
More like this
apps/tools/translatefiles/translate (POST)
apps/tools/translatefiles/translate (POST)
Read with this
resources/files/download
resources/files/download
More like this
Push updates - JSON samples
Push updates - JSON samples
Read with this

Copyright Wordbee - Buzzin' Outside the Box since 2008