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



Best Answer

  • Gurpreet
    Gurpreet admin
    Answer ✓

    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.

Answers