API key Autorization using Python

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
  • 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.