index.js
function getSensors(sensorIDs, authOpts) {
  if (!Array.isArray(sensorIDs)) sensorIDs = [sensorIDs]
  const query = sensorIDs.map(id => `ids%5B%5D=${id}`).join('&')
  const url = `${SENSORS_URL}?${query}`
  return authenticatedGet(url, authOpts)
}
function getSensors(sensorIDs, authOpts) {
  if (!Array.isArray(sensorIDs)) sensorIDs = [sensorIDs]
  const query = sensorIDs.map(id => `ids%5B%5D=${id}`).join('&')
  const url = `${SENSORS_URL}?${query}`
  return authenticatedGet(url, authOpts)
}
function getSensors ( sensorIDs , authOpts ) { if ( ! Array . isArray ( sensorIDs ) ) sensorIDs = [ sensorIDs ] const query = sensorIDs . map ( id => ` ${ id } ` ) . join ( '&' ) const url = ` ${ SENSORS_URL } ${ query } ` return authenticatedGet ( url , authOpts ) }
Get information for one or more sensors.

@param {string|string[]} sensorIDs Array of sensor ID strings.
@param {Object} authOpts Authentication object returned from the `login`
method.
@returns {Promise}
Get information for one or more sensors .