Skip to main content

Get file content for view by core

Заметка

[Since 3.2]

Get file content for view by core.

POST /api/v1/public/{linkUid}/viewByCore HTTP/1.1
  1. Path parameters
ParameterDescription
linkUidThe UID of the link for the folder.
  1. Request parameters
ParameterDescription
accessTokenThe access token for file
  1. Example request
curl 'http://localhost:8080/api/v1/public/001bf132-1b2e-48b5-b5f6-
6f1a5d970d01/viewByCore?accessToken=3fu2G048AL0iib8KIOvUuRWjCrUapVLe' -i -X GET \
-H 'X-co-auth-token: f571e4bf982a8c49c492d636e793f07c' \
-H 'If-None-Match: 001bf132-1b2e-48b5-b5f6-6f1a5d970d01'
  1. Example response headers
HTTP/1.1 200 200 OK
X-co-request-id: uhFonTaPfWj6OyGOMMZaAcSts0NzMTJo
Content-Disposition: attachment; filename="=?UTF-8?Q?testfile.txt?="; filename*=UTF-8''testfile.txt
Content-Length: 20
Content-Type: text/plain
ETag: W/"07618841afc44b469a0464b672557f59e0e102b9ff40785fac8902d8bcbf227940"
X-co-web-client-only: true
[ content of the response is skipped ]
  1. Example response
HTTP/1.1 200 OK
X-co-request-id: G8kMUrqReAqpj0gOmed4iWsD0yQWBGv2
Content-Disposition: attachment; filename="=?UTF-8?Q?testfile.txt?="; filename*=UTF- 8''testfile.txt
Content-Length: 20
Content-Type: text/plain
ETag: W/"07618841afc44b469a0464b672557f59e0e102b9ff40785fac8902d8bcbf227940"
X-co-web-client-only: true
[ some example content ]