question

Upvotes
Accepted
19 1 0 4

Accessing OnLine Reports images

Hello!

I am trying to retrieve an image which is returned by a "GetSummaryByTopic" from the OnLine Reports section, such as the one below. I didn´t find an explanation in the help telling me how to retrieve the image file (the .JPG part of the result).

Can anyone tell me how to do it?

Thanks!

urn:newsml:onlinereport.com:20170627:nRTROPT20170627140341KBN19I1TD Ransomware virus hits computer servers across the globe

MOSCOW/KIEV (Reuters) - A ransomware attack hit computers across the world on Tuesday, taking out servers at Russia's biggest oil company, disrupting operations at Ukrainian banks, and shutting down computers at multinational shipping and advertising firms.

2017-06-27T203547Z_5_LYNXMPED5Q0ZZ_RTROPTP_1_CYBER-ATTACK-UKRAINE.JPGurn:newsml:onlinereport.com:20170627:nRTROPT20170627142530LYNXMPED5Q0ZZA message demanding money is seen on a monitor of a payment terminal at a branch of Ukraine's state-owned bank Oschadbank after Ukrainian institutions were hit by a wave of cyber attacks earlier in the day, in Kiev20170627T140341+000020170627T142530+0000

rkd-apirkd
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.

Upvotes
Accepted
381 1 2 3

Hi,

There is a section in TRKD API programmers guide (TRKD API DEVELOPERS GUIDE) that talks about retrieving online report images. Please refer to the chapter on Online Reports.

let us know if any questions.

thanks,

Waseem

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.

Upvotes
19 1 0 4

I had already looked at the developers guide, but there wasn´t an explanation for this question.

But I spent some time and now I have a solution: for the news that I have posted, it is knows that the image is: "2017-06-27T203547Z_5_LYNXMPED5Q0ZZ_RTROPTP_1_CYBER-ATTACK-UKRAINE.JPG".

In order to access the image, since there is no URL, it is necessary to assemble it, adding:

http://api.trkd.thomsonreuters.com/api/onlinereports/

2017-06-27T203547Z_5_LYNXMPED5Q0ZZ_RTROPTP_1_CYBER-ATTACK-UKRAINE.JPG

.ashx

There are differences in composition of the url, for example, "https" instead of "http"; or "http://api.rkd.extranet.thomsonreuters.biz".

I would strongly suggest that this particular section of the manual (14.3.5) is improved, otherwise more people may have the same problem.

Regards

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