For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted

StandardExtractions/UserPackageDeliveryGetUserPackageDeliveriesByDateRange

This endpoint only gives data for last day mentioned.

ex.

"https://hosted.datascopeapi.reuters.com/RestApi/v1/StandardExtractions/UserPackageDeliveryGetUserPackageDeliveriesByDateRange(SubscriptionId='0x0d24a00cb4',FromDate=2017-07-30T00:59:00.000Z,ToDate=2017-08-02T23:59:00.000Z)"

Here it is giving files for 20170802 only.. no files from 20170730 to 20170801.

Could you please advise.

dss-rest-apidatascope-selectdss
icon clock
10 |1500

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

Thank you for your participation in the forum.
Is the reply below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.
Thanks,
-AHS

Hello again!

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
AHS

1 Answer

· Write an Answer
Upvotes
Accepted
11.3k 25 9 14

@satish.shioshankar.gaidhane

The UserPackageDeliveryGetUserPackageDeliveriesByDateRange method uses the Server-Driven Paging mechanism to deliver data. It will return the first page of results (typically 250 rows) on the initial request. The initial server response will include a nextlink(URI) that, when called, will return the next 250 rows for that result set as well as another nextlink.

It is possible that your endpoint returns results more than 250 rows, so you need to request the nextlink URI at the end of the response to retrieve next page.

Please note that there currently is an issue on returned URI, where sometimes the URI is returned in "http" instead of "https". You need to manually change it to "https", before sending the request.

Below is the sample of response.

        {
            "PackageDeliveryId": "0x05d194f020bb3026",
            "UserPackageId": "0x04f21a8d19759cb1",
            "SubscriptionId": "0x0400dc1d24a00cb4",
            "Name": "CME-2017-08-02-REF-Data-CUSIP-SEDOL-GICS-1-of-1.csv.gz",
            "ReleaseDateTime": "2017-08-03T03:00:00.000Z",
            "FileSizeBytes": 20866,
            "Frequency": "Daily",
            "ContentMd5": "dc68d0d97c9a4924ba12dddcc29c0631"
        },
        {
            "PackageDeliveryId": "0x05d194ef1d5b3026",
            "UserPackageId": "0x04f21a8d2be59cb1",
            "SubscriptionId": "0x0400dc1d24a00cb4",
            "Name": "SGO-2017-08-02-REF-Report-1-of-1.csv.gz",
            "ReleaseDateTime": "2017-08-03T03:00:00.000Z",
            "FileSizeBytes": 47595,
            "Frequency": "Daily",
            "ContentMd5": "f914dfe220e19a03404a13495403b2aa"
        }
    ],
    "@odata.nextlink": "https://hosted.datascopeapi.reuters.com/RestApi/v1/StandardExtractions/UserPackageDeliveryGetUserPackageDeliveriesByDateRange(SubscriptionId='0x0400dc1d24a00cb4',FromDate=2017-07-30T00:59:00.000Z,ToDate=2017-08-02T23:59:00.000Z)?$skiptoken='MjAxNy0wOC0wMlQyMzoxNjowMi42NDYwMDAw'"
}
icon clock
10 |1500

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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