question

Upvotes
Accepted
3 0 0 1

I can not get credential in Research API

Hello,

I'm trying to extract data using Research API with Python 3.6.0.

I tryed to get credentials using this code.

retCredentials = httpUtil.get_credential(credentialServerURL, 200, None, subscribeOutputs['endpoint'])")

But, I got the following error.Why is this code not working?

{"error":{"code":"10003","id":" -------- ","message":"Endpoint pattern was not found","status":"400"}}


differences status code expected: 200 but got 400
Failed to retrieve credentials with error:  differences status code expected: 200 but got 400


rdp-apirefinitiv-data-platformrdp
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
13k 32 12 18

So you are using Research Alerts. I would advise you to go through the Alerts tutorial. Even though it is written around News, all the material is applicable to Research as well.

The accompanying downloads sample in the tutorial, contains a working Research sample written in python, and shows correct implementation of Cloud Credentials. You will need a EDP userID, password, client ID (App Key) and a UUID which has been granted access to Research data.

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
13k 32 12 18

Hello, Can you please elaborate your question - are you trying Research endpoint - /data/research/beta1/documents/{id}

What is credentialServerURL? Are you able to successfully login to EDP and get a valid access token?

Thanks.

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
3 0 0 1

Hello, thank you for your reply.This is full error message and credentialServerURL.

{"error":{"code":"10003","id":"d62c901a-6a0f-4897-b707-7f6eab5229d5","message":"Endpoint pattern was not found","status":"400"}}

credentialServerURL:/ https://api.edp.thomsonreuters.com/auth/cloud-credentials/beta1/

endpoint = https://sqs.us-east-1.amazonaws.com/642157181326/sqs-edsalerts-main-prod-usersqs-db19d586-dd40-422c-8808-xxxxxxxxxxx

Yes, I think, I can get a access first token successfully.

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
3 0 0 1

Thank you for your advice.

I try the Alerts tutorial.

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