On the API (version 1.8.3), I need to retrieve some history data through history.get, something like this:
Is it possible to pass multiple values in the 'history' parameter? The documentation says it receives an array, but I tried an array and it didn't work. These two items have different 'value_type' properties, which are 0 and 3.
The 'history' parameter works correctly if I pass a single value, like "0" or "3". However, if I pass "0" only the first item is fetched, if I pass "3" only the second item is fetched (and this is correct). But I'd like to retrieve both items on the same request, so I need to pass both "0" and "3". How can I do that?
Thanks in advance.
Code:
{
'history' : 3,
'itemids' : [ 32755, 32749 ],
'time_from' : 1299233040,
'time_till' : 1299236640,
'output' : 'extend'
}
The 'history' parameter works correctly if I pass a single value, like "0" or "3". However, if I pass "0" only the first item is fetched, if I pass "3" only the second item is fetched (and this is correct). But I'd like to retrieve both items on the same request, so I need to pass both "0" and "3". How can I do that?
Thanks in advance.
)
Comment