Skip to content

Surface the SC-Request-Id HTTP response header on SmartcarResponse

Compare
Choose a tag to compare
@sankethkatta sankethkatta released this 11 Mar 16:35
· 121 commits to master since this release
7f51579

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