lawrencefoley / evergy

A simple utility that you can use to access your Evergy account and retrieve you meter readings.
MIT License
31 stars 13 forks source link

Remove HTML Parsing #9

Open lawrencefoley opened 3 years ago

lawrencefoley commented 3 years ago

Right now the code uses HTML parsing to handle the login and for getting the meter ID(s). Research should be done to see if this part can be replaced with just HTTP calls.

Benefits would include:

https://www.evergy.com/api/user/current

tboyce021 commented 1 year ago

I looked into this a bit and while the data can all be obtained without HTML parsing, I can't find a way to actually log in without parsing the csrf token. There appears to be an evrgaf that comes in the response headers, but it didn't seem to work for logging in.