API - deviceId multiple parameter request

Lucas Bastos6 years ago

Hello guys,

I am trying to return data from summary report endpoint through API but I am having trouble by passing the same parameter key using axios like the docs require (deviceId=aaa&deviceId=bbb&deviceId=ccc). Follows the code below:

Does anyone know how to pass multiple parameter with same key to consume this endpoint?

Thanks

axios({
        method: 'get',
        url: "xxxx/api/reports/summary",
        auth: {
            username: 'xxxx',
            password: 'xxxx'
        },
        params: {
            from: "2018-10-09T00:00:00",
            to: "2018-10-09T23:59:59",
            deviceId: 1
        }
    }).then(response => {
        return response.data
    }).catch(error => console.log(error))
}