Get a daily extract file

get

/rest/ofscCore/v1/folders/dailyExtract/folders/{dailyExtractDate}/files/{dailyExtractFilename}

This operation retrieves a daily extract file for the specified date.

The daily extract file is a binary file with archived table content. The file may be large (greater than 1 GB) and therefore it is possible to identify the offset in the range header and resume an incomplete download. For example, 'Range: bytes=1000-' means that the download should start from offset, 1000 bytes and continue up to the end of the file.

Note:The daily extract files are deleted after 90 days.

Request

Path Parameters
Back to Top

Response

Supported Media Types

200 Response

This section describes the 200 status response for this operation.
Body ()
Root Schema : File
Type: string(binary)
Title: File
The contents of the file. This is usually binary data.

Default Response

This section describes the default error response for this operation.
Body ()
Root Schema : Error
Type: object
Error response
Show Source
Back to Top

Examples

The following example shows how to download daily extract file by submitting a GET request on the REST resource using cURL. To download binary data, the client must specify the value of the "Accept" header as "application/octet-stream".

curl -u '<CLIENT-ID>@<INSTANCE-NAME>:<CLIENT-SECRET>' \
     -H 'Accept: application/octet-stream' \
     'https://<instance_name>.etadirect.com/rest/ofscCore/v1/folders/dailyExtract/folders/2015-07-02/files/activity-data.tar.gz'

Example of Request Header

The following shows an example of the resquest header.

GET /rest/ofscCore/v1/folders/dailyExtract/folders/2015-07-02/files/activity-data.tar.gz HTTP/1.1
Accept: application/octet-stream
Accept-Encoding: gzip,deflate
Authorization: Basic c29hcEB0ZXN0YXBpY29yZS5pbjQwMDox
Host: <instance_name>.etadirect.com
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

Example of Response Header

The following shows an example of the response header.

HTTP/1.1 200 OK
Server: nginx/1.6.2
Date: Wed, 15 Jul 2015 12:31:55 GMT
Content-Type: application/octet-stream
Content-Length: 3943529
Connection: keep-alive
content-description: File Transfer
content-disposition: attachment; filename="activity-data.tar.gz"

Example of Response Body

The following example shows the contents of the response body in JSON format.

<File content in binary format>
Back to Top