You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to create a basic request to get extended attributes using the ruby SDK.
defvehicle@token=params[:token]ap@tokenvehicle_ids=Smartcar.get_vehicles(token: @token).vehiclesapvehicle_idsvehicle=Smartcar::Vehicle.new(token: @token,id: vehicle_ids.first,options: {unit_system: 'imperial'})apvehicle# vehicle_attributes = vehicle.attributespath="#{vehicle.attributes.make}/attributes"vehicle_attributes=vehicle.request("GET",path)apvehicle_attributesvehicle_attributes.to_h.slice(*%I[idmakemodelyear]).to_json# API calls to get vehicle infoapvehicle.odometerend
the vehicle.request is erroring out with a 404:
SmartcarError (RESOURCE_NOT_FOUND:PATH - The requested resource does not exist. Please check the URL and try again.):
the path is being written as 'FORD/attributes' - just like it shows in the API documentation.
I get the test vehicles, I get the basic attributes but cannot get the extended attributes, if someone could point me to what I'm doing wrong I would really appreciate it.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
Trying to create a basic request to get extended attributes using the ruby SDK.
the vehicle.request is erroring out with a 404:
the path is being written as 'FORD/attributes' - just like it shows in the API documentation.
I get the test vehicles, I get the basic attributes but cannot get the extended attributes, if someone could point me to what I'm doing wrong I would really appreciate it.
Thanks in advance.
The text was updated successfully, but these errors were encountered: