Surface the SC-Request-Id HTTP response header on SmartcarResponse
Smartcar HTTP responses set a header called SC-Request-Id
. Each response from Smartcar’s API has a unique request identifier. If you need to contact us about a specific request, providing the request identifier will ensure the fastest possible resolution. See the API Reference for more details.
This release adds the SmartcarResponse.getRequestId()
method.
Example Usage:
Vehicle vehicle = new Vehicle(vid, accessToken);
SmartcarResponse<VehicleLocation> location = vehicle.location();
System.out.println(location.getRequestId());
// 6e1a18bb-b20e-4d5d-8dd2-537989988b65