Quick question, I was wondering the other day how the API reacts to an account with more than one Tesla? More specifically how does it format the JSON response? For example, the API call for getting the car info such as ID and Display name, how would the API separate the independent values? Is is comma separated?
An example I thought of below:
"response": [{
"color": null,
"display_name": null,
"id": 321,
"option_codes": "MS01,RENA,TM00,DRLH,PF00,BT85,PBCW,RFPO,WT19,IBMB,IDPB,TR00,SU01,SC01,TP01,AU01,CH00,HP00,PA00,PS00,AD02,X020,X025,X001,X003,X007,X011,X013",
"user_id": 123,123,
"vehicle_id": CAR1ID,CAR2ID,
"vin": "CAR1VIN","CAR2VIN",
"tokens": ["x", "x"],
"state": "online","offline"
}],
"count":2
}
An example I thought of below:
"response": [{
"color": null,
"display_name": null,
"id": 321,
"option_codes": "MS01,RENA,TM00,DRLH,PF00,BT85,PBCW,RFPO,WT19,IBMB,IDPB,TR00,SU01,SC01,TP01,AU01,CH00,HP00,PA00,PS00,AD02,X020,X025,X001,X003,X007,X011,X013",
"user_id": 123,123,
"vehicle_id": CAR1ID,CAR2ID,
"vin": "CAR1VIN","CAR2VIN",
"tokens": ["x", "x"],
"state": "online","offline"
}],
"count":2
}