Hi,

we are using the API for various purposes in other applications and had great experience using it so far.

Know we are faced with a problem:

When trying to get the counts of messages and alarms by calling https://zzz/api/getstatus.xml?id=0&username=XXXX&passhash=YYYYYYY we are always getting zeros for newMessages and newAlarms although there are new Messages and new Alarms.

If i login through the WebGUI (with the same user) and directly use /api/getstatus.xml?id=0 then i get the correct numbers

I now found that using the password in the URL String instead of the passhash gives me at least correct count for "newMessages".

Is there a restriction using passhash which i missed?


Article Comments

Hello,

thank you very much for your KB-Post. I'm afraid this is due to the fact that the API-Call causes a new login each time, and thus these values are reset to zero.

best regards.


May, 2014 - Permalink