jamesremuscat / pyze

Unofficial Python client and API for Renault ZE
MIT License
111 stars 29 forks source link

Raw dump of what pyze sends to server #100

Open jumpjack opened 2 years ago

jumpjack commented 2 years ago

May I have a raw dump of what pyze actually sends to server for this request?

            'actions/hvac-start',
            {
                'type': 'HvacStart',
                'attributes': {
                    'action': 'cancel'
                }
            }

I am trying to reproduce the request in XMLHttpRequest() Javascript, with no success.

Same question for this:

'hvac-history?type={}&start={}&end={}'.format(
                period,
                start.strftime(PERIOD_FORMATS[period]),
                end.strftime(PERIOD_FORMATS[period])
            )

What is actually sent to the server? How can I simulate it in https://reqbin.com/ ?