batchGetDevicePosition method
Lists the latest device positions for requested devices.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter deviceIds :
Devices whose position you want to retrieve.
-
For example, for two devices:
device-ids=DeviceId1&device-ids=DeviceId2
Parameter trackerName :
The tracker resource retrieving the device position.
Implementation
Future<BatchGetDevicePositionResponse> batchGetDevicePosition({
required List<String> deviceIds,
required String trackerName,
}) async {
final $payload = <String, dynamic>{
'DeviceIds': deviceIds,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri:
'/tracking/v0/trackers/${Uri.encodeComponent(trackerName)}/get-positions',
exceptionFnMap: _exceptionFns,
);
return BatchGetDevicePositionResponse.fromJson(response);
}