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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 1 1 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 512.0 KiB each and 1.0 MiB total.

Hello @nigilchua

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

Upvote
Accepted
11.3k 25 9 14
@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 512.0 KiB each and 1.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 1 1 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 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.