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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 0 0 2

ThomsonReuters.Dss.RestApi Results is different from https://hosted.datascope.reuters.com/dataScope

Hi Support.

Could you advise if the results being invoked via ThomsonReuters.Dss.RestApi same as the one I am accessing https://hosted.datascope.reuters.com/dataScope.

Example. I am invoking the API ExtractionsContext.ReportTemplateOperations.GetAll() which only returns 11 records but if I will do go to Datascope select website, under

https://hosted.datascope.reuters.com/DataScope/extractions/reports, I have more than 11 records.
and both using the same login and pass.

Best Regards,
Nigil Chua


dss-rest-apidatascope-selectdss
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.

Upvote
Accepted
11.3k 25 8 13
@nigilchua

With my account, Web UI and API return the same number of templates. My account has 28 record templates. The GetAll() method uses Server-Driven Paging mechanism. You can see the example in this link.

Below is the possible causes.

- There is "MaxPageSize" configured to limit number of records per page.

var ExtractionsContext = new ExtractionsContext(new Uri("https://hosted.datascopeapi.reuters.com/RestApi/v1/"), "<your user id>", "<your password>");

ExtractionsContext.Preferences.MaxPageSize = 100;

- Records might be provided in next page link. Application should call .HasNextPage to verify if the page object returned from the GetAll() has next page link.

It will be useful, if you can provide snippet code.

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.

The default page size is 250 rows. If you're not overriding the max page size, it would be best to keep the default value and page through the results if you expect to have more than 250.

Upvotes
1 0 0 2

Hi there,

Found the root cause, apparently it was pointing to

https://eap.hosted.datascopeapi.reuters.com/RestApi/v1/ then I saw you are referring to

https://hosted.datascopeapi.reuters.com/RestApi/v1/ so I made a changed and now results invoke via REST API are the same from Web UI Datascope.


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