question

Upvotes
Accepted
50 11 20 28

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

1 Answer

· Write an Answer
Upvote
Accepted
78.2k 246 52 72

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