Legacy Dev Forum Posts

 View Only

Sign Up

Basic Auth with node "request"

  • 1.  Basic Auth with node "request"

    Posted 06-05-2025 18:16

    nrajan | 2020-01-15 19:46:24 UTC | #1

    I'm struggling to get the below code to work ... it is based off a working template in python that I have. I am getting status 400 error. What is my issue?


    tim.smith | 2020-01-15 18:19:40 UTC | #2

    I would suggest using the Python SDK. It handles authorization for you and makes making requests easier. https://developer.mypurecloud.com/api/rest/client-libraries/python/index.html

    If you cannot use the SDK for some reason, there's a tutorial for this: https://developer.mypurecloud.com/api/tutorials/oauth-client-credentials/?language=python&step=1. You can also refer to the documentation for authorizing with client credentials: https://developer.mypurecloud.com/api/rest/authorization/use-client-credentials.html


    nrajan | 2020-01-15 19:45:52 UTC | #3

    Hi Tim, thanks so much for the 2nd link that is exactly what I'm looking for.


    system | 2020-02-15 19:45:56 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 6877