question

Upvotes
Accepted
50 9 12 20

Connectivity testing post firewall opening.

Hi,

We are going to implement TRTH v2 in our environment for the first time.I have 2 questions on the same.

1. Connectivity testing:

We are opning firewall port. To test the connectivity, we have come up with an option which is as below.

curl -H "Content-Type: application/json" -H "Prefer: respond-async" -X POST -d'{"Credentials": {"Username": "Your Username","Password": "Your Password"}}' https://hosted.datascopeapi.reuters.com/RestApi/v1/Authentication/RequestToken

Is there any other best way to do the same?

2. Tech to implment TRTH v2:

Is it possible to implement through shell scripting? We are planning to use curl for the request and responses.

Or what will be the best way to implement the same?

Thanks in advance,

Ayan.

tick-history-rest-api
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.

1 Answer

Upvote
Accepted
38.1k 69 35 53

To test the connection, you can test with this URL https://hosted.datascopeapi.reuters.com/RestApi/v1 and check the returned status code. /Authentication/RequestToken is for authentication.

Yes, it is possible to use TRTH REST API with shell script and curl.

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