Ad Widget

Collapse

API: Is possible to filter when "selectAlarms" is passed in "service.get"?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Murilo Scarpa Sitonio
    Junior Member
    • Feb 2019
    • 4

    #1

    API: Is possible to filter when "selectAlarms" is passed in "service.get"?

    I want to apply filtering in elements returned when I pass parameters like "selectAlarms" when calling another method like "service.get". It is possible? How can I do this?

    To be more specific I want to get the alarms with values 3 and 4 in a period (from "clock": "1546311600" to "clock": "154898600"). Here's the request I'm using:

    Code:
    {
        "jsonrpc": "2.0",
        "method": "service.get",
        "params": {
            "output": "",
            "serviceids": "6",
            "selectAlarms": ["value", "clock"]
        },
        "auth": "683b9bb102eacb4567bef763595b190f",
        "id": 1
    }
    I tried to use "filter" but didn't work.
    Thanks in advance!
    Last edited by Murilo Scarpa Sitonio; 28-02-2019, 13:29.
Working...