05-18-2020, 10:10 PM
By the way, emulating the WebLoginWdg works. All I have to do is make a post as follows:
url = 'http://xxxxx.com/tactic/fitnessmedia?is_from_login=true&login=admin&password=xxxxxx'
fetch(url, {'method': 'POST'}).then(resp => resp.text()).then(data => console.log(data))
This logs the admin site html, and sets a login ticket as a cookie for further API calls.
url = 'http://xxxxx.com/tactic/fitnessmedia?is_from_login=true&login=admin&password=xxxxxx'
fetch(url, {'method': 'POST'}).then(resp => resp.text()).then(data => console.log(data))
This logs the admin site html, and sets a login ticket as a cookie for further API calls.