Forum - REST api

Tagged: ,

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #76052
    Jeremy Liss
    Participant

    Hello,

    We’re trying to use the REST api for the first time – so far unsuccessfully – and I have a couple of questions.

    1. Delivery:
    How do we get the dvsid needed for the delivery endpoints, and is this different from a dps_dvs?
    I have tried using an active dps_dvs as the dvsid but I get ‘Invalid delivery session ID’.
    Is there a RESTful way to get a dvsid?

    2. SIPs:
    A couple of us have tried accessing the get SIP endpoint but we both get an unauthorised response, despite having one of the required roles.

    This is the python code we are using for authentication:

    userpass = f”{username}-institutionCode-{institutionCode}:{password}”
    encoded_u = pybase64.b64encode(userpass.encode())
    headers = {“Authorization” : “Basic %s” % encoded_u}
    response = requests.get(url, headers = headers)

    Does this look correct?
    If so is there another reason we might be getting that response?

    I appreciate any help you can give us.

    Thanks,
    Jeremy

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.