API key Autorization using Python

Former Member
Former Member

Hi,

Is there any way to use python to authorize using API key and API key id ?

Any sample python code available?

Parents Reply Children
  • Former Member
    0 Former Member in reply to Ben Tiedt

    Thanks Ben but this is c# code and I m looking for python code for authorization.

    i tested api using postman and it has javascript for authorization. I m looking for similar authorization using python. I tried some code but it doesnt work. 

  • this is c# code and I m looking for python code for authorization.

    Right. There isn't much to this, however.

    1. You make an HTTP request to the endpoint provided in documentation using the HTTP method documented (GET, POST).
      1. If the documentation identifies an alternate header (for DELETE or PUT), use POST and add an HTTP request header for "Rest-Method" = "DELETE" or "PUT"
    2. Set the HTTP request header of "Rest-User-Token" to the base64-encoded value of the concatenation of the user's API Key, a colon (":"), and the user's username.