Hey guys , i am getting response 401 ,my code is from http.client import HTTPSConnection from bas...

Hey guys , i am getting response 401 ,my code is from http.client import HTTPSConnection from base64 import b64encode #This sets up the https conn response = requests.post(url, auth=requests.auth.HTTPBasicAuth( '****', '****')) #print(response.text)

Best Answer

  • Prabhjyot
    Prabhjyot LSEG
    Answer ✓

    @monojit.banerjee,

    Thank you for the details over email.

    As observed, you are just using the profile-id for fetching the details. The profile-id has to be used in the below format to be able to fetch the details of the World-Check profile using the API -

    Individual: e_tr_wci_XXXXXX’

    Organisation: e_tr_wco_XXXXXX’

    Vessel: e_tr_wcv_XXXXXX’

    Please let us know if this is able to resolve the issue at your end.

Answers