Jason to C#code

How can I get the same result as page test through  API code?
Please share code for me?

I found the below Jason API code, can we have c# code for the same

@{ "ExtractionRequest": { "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.TermsAndConditionsExtractionRequest", "ContentFieldNames": [ "Ric" ], "IdentifierList": { "@odata.type": "#ThomsonReuters.Dss.Api.Extractions.ExtractionRequests.InstrumentIdentifierList", "InstrumentIdentifiers": [ { "IdentifierType": "ChainRIC" } ], "ValidationOptions": { "AllowOpenAccessInstruments": true, "AllowHistoricalInstruments": true, "AllowLimitedTermInstruments": true, "AllowInactiveInstruments": true, "AllowUnsupportedInstruments": true, "ExcludeFinrAsPricingSourceForBonds": true, "UseExchangeCodeInsteadOfLipper": true, "UseUsQuoteInsteadOfCanadian": true, "UseConsolidatedQuoteSourceForUsa": true, "UseConsolidatedQuoteSourceForCanada": true, "UseDebtOverEquity": true, "UseOtcPqSource": true, "AllowSubclassImport": true }, "UseUserPreferencesForValidationOptions": true }, "Condition": { "ExcludeWarrants": true, "UseRelativeAnalytics": true } } }



@Md.Hisham.TR

Best Answer

  • Gurpreet
    Gurpreet admin
    Answer ✓

    Hello @Prathibha.Mariyappa

    Please download the C# sample application and see the OnDemandExtraction -> Terms and Conditions extraction. You can click Run to see it in action and click on C# tab to see the source code of how it is implemented.

    image