Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • TRTH /
avatar image
REFINITIV
Question by Beera.Rajesh · Jun 22, 2017 at 04:39 PM · trth v2restapi

Why the url’s structure is different in the 202 Status case TRTHv2 REST API

I ran an ElektronTimeSeries(EndOfDay) request.

The response I got is :
Status Code – 202
‘Location’ in Headers - https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractRawResult(ExtractionId='0x05c454b16eab3026')

However, In the docs Chapter 10, I see that the Location URL when the status code is 202 should be like the following –
‘Location’ in Headers: https://hosted.datascopeapi.reuters.com/RestApi/v1/monitor/'0x0570a0ea31ec3156'
If a GET is requested on this Monitor URL, and if the status is 200, we would get the extractRawResult URL.
Is My Understanding correct?
If Yes, Why did I get the ExtractRawResult Location directly with 202 status code?

Why the url’s structure is different in the 202 Status case.

One contains the word ‘Monitor ‘ - https://hosted.datascopeapi.reuters.com/RestApi/v1/monitor/'0x05709cc5aadc3156'

And Other contains the ‘ExtractionResults’ -https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractRawResult(ExtractionId='0x058dcda3c29b5841')

Both the above URLs correspond to the 202 Case.

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

1 Reply

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by jirapongse.phuriphanvichai · Jun 22, 2017 at 09:57 PM

The Location URL in the document may be outdated. To check the status, you need to use the URL shown in the "Location" header with GET method such as GET: https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractRawResult(ExtractionId='0x05c46af2ef4b3026').

Once the status is 200, you will get the response with "JobId" which is the same number as ExtractionId.

{
    "@odata.context": "https://hosted.datascopeapi.reuters.com/RestApi/v1/$metadata#RawExtractionResults/$entity",
    "JobId": "0x05c46af2ef4b3026",
    "Notes": [
        "..."
    ]
}

After that, to get the data, you need to use GET method with https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/RawExtractionResults('0x05c46af2ef4b3026')/$value.

You can download and use TRTH REST Tutorials Postman collection tool to verify the behavior. You can download Postman from https://www.getpostman.com/.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

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

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
11 People are following this question.

Related Questions

How can i get symbol changes from trth v2? sample data given below..

TRTH v2 trade qualifiers in a TimeAndSales request

Missing TRTH HistoricalChainResolution Constituents for 0#.AORD

How to inspect the data type

How can i get previous day close for each dy and symbol when making a trth ElektronTimeseries request

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • World-Check Data File
  • Explore
  • Tags
  • Questions
  • Badges