For a deeper look into our DataScope Select REST API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 0 1 2

DSS API Authentication Error

Please can someone help me with the authentication error that the client is getting for DSS API , It is very urgent hence seeking urgent assistance, see attached screenshot.

dss-rest-apidatascope-selectdss
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.

@divya.suresh, I edited the screenshot, to mask the customer ID and password !

Having them exposed in public view is a risk for the customer.

=> As a security measure I suggest you tell the customer to change his password, because it might have been compromised.

@divya.suresh, this is a good opportunity to suggest to your customer to use the TRDC portal and forum. It is free, he can use a pseudo to avoid sharing his identity, he can find documentation, downloads, tutorials, and post queries on the forum directly. The contents of the forum are kept up to date, and the forum is quite active, so he will usually get quick responses.

@divya.suresh
Thank you for your participation in the forum.
Is the reply below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.
Thanks,
-AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
13.7k 26 8 12

@divya.suresh, I tried looking at the code, but the code that generates the error is hidden, as well as the error message. That said, the following does not seem right :

  • Several authentication requests, in lines 37, 40 and 42.
  • Several extraction contexts, in lines 37 and 42.

This code looks like it is for scheduled requests. We have 3 tutorials (and corresponding sample code) that describe this in C#, starting with this one. They might be of help.

In a nutshell, the initial part would look somewhat like this:

static void Main()
{
    //Connect and authenticate to the DSS server:
    Uri dssUri = new Uri("https://hosted.datascopeapi.reuters.com/RestApi/v1/");
    string dssUserName = "YourUserId";
    string dssUserPassword = "YourPassword";
    ExtractionsContext extractionsContext = new ExtractionsContext(dssUri, dssUserName, dssUserPassword);            
    string sessionToken = extractionsContext.SessionToken;
    Console.WriteLine("Returned session token: " + sessionToken);

After that, the other operations will simply refer to the extractions context. Example:

//Create a new (empty) instrument list:
var instrumentList = new InstrumentList { Name = "myInstrumentListName" };
extractionsContext.InstrumentListOperations.Create(instrumentList);

Etc.

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.