Login
HI gurus
Very new to Python and therefore to all this so go easy on me, I am trying to just login to logicMonitor using python 3
I have my accesskey and all that good stuff, well I think do, but I cant seemed to be able to login into my account.
I have :
signature = base64.b64encode(hmac.new(AccessKey,msg=requestVars,digestmod=hashlib.sha256).hexdigest())
But i get the expected a "byte" and got str instead.
can someone share their Python code to just login into logicmonitor , so I can learn on how to do it and what am I doing wrong?
Thanks a bunch
GUaro5555
Posted 3 years ago·Last reply 3 years ago
3 comments
LM User
·3 years agoWith the API, you log in for each and every call.
GUaro5555
OP3 years agoBoss
all this just to login,i am not planning to do anything just login , well I have a lot to read chief, I will keep you posted, Thanks a bunchhhhhhhhhhhhhhhh
LM User
·3 years agoYou might consider using the SDK, instructions here. My personal wrapper to streamline the sdk is described a href="https://communities.logicmonitor.com/topic/7713-lm-wrapper-for-the-python-sdk/#comment-86637" rel="">here.
Here's my LM_GET function, don't remember where I got it.