question

Upvotes
Accepted

do we have FTP location for V2 (Datascope)?

Hi ,

in V1 we could download files using curl or wget from https repository.

Also. we use datascope for few downloads and we can download from "

hosted.datascope.reuters.com/reports". But I heard that there is no FTp location and we cant use curl/wget for downloading the files. Is that correct?

If yes, what will happened to our existing above mentioned datascope repository where we use curl to download.

or id option available in V2 to doanload files with curl/wget from repository/?

tick-history-rest-apiFTP
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
38.1k 71 35 53

Yes, in V2, you will use ID to get the result. For example, when the request is complete, you will get the "JobID".

{
    "@odata.context": "https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#RawExtractionResults/$entity",
    "JobId": "0x05c9070437db3036",
    "Notes": [
        "Extraction Services Version 11.1.36930
...
}

Then, you can use this JobId in the URL to get the data with curl.

curl -H "Content-Type: Accept-Encoding: gzip, deflate" -H "Prefer: respond-async" -H "Authorization:
 Token <token>" -X GET https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/RawExtractionResults('0x05c9070437db3036')/$value -o test.gzip
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

For Schedule extraction, the "ExtractedFileId" is needed to get the data. Application can get the list of all ExtractedFileId via this REST API endpoint.

Then, the ExtractedFileId can be used to get the data with curl.

curl -H "Content-Type: Accept-Encoding: gzip, deflate" -H "Prefer: respond-async" -H "Authorization:Token_<token>"  -X GET https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractedFiles\(\'VjF8MHgwNWM1Nzc5MDI2NmIzMDM2fA\'\)/\$value -o test.gz
Upvotes

Thank you.

so here we need to get token first. But here we need to get token and ExtractedFileId using API.

Again the thing is we are dependent on API.

But in existing V1, we have direct FTP location from where we can download the files.

Don't we have similar in V2? is V2 same Datascope?

in datascope we use ftp location to download files.. not sure why TR is saying they don't have FTP location to download files..

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea