v3.3.0
What's Changed
AuthClient and get_compatibility()
- The testMode [Boolean] parameter is deprecated and replaced with the mode[String] parameter instead.
- mode [String] parameter determines what mode Smartcar Connect should be launched in.
- Should be one of test, live or simulated.
Example:
client = Smartcar::AuthClient.new(mode: 'simulated')
compatibility = Smartcar.get_compatibility(vin: 'vin', scope: %w[read_odometer read_location], mode: 'simulated')Vehicle
- Vehicle options [Hash] parameter now can use the flags field as shown below
- More information on flags can be found here
Example:
vehicle = Smartcar::Vehicle.new(
token: 'token',
id: 'vehicle_id',
options: { flags: { country: 'DE', flag: true } }
)Full Changelog: v3.2.0...v3.3.0