curl "https://api.smartcar.com/v2.0/vehicles/{id}/{make}/charge/schedule_by_location" \
-H "Authorization: Bearer {token}" \
-X "GET"
{
"chargingLocations": [
{
"chargeLimit": 0.8,
"chargingSchedules": {
"weekday": [
{
"end": "17:00",
"start": "09:00"
}
],
"weekend": [
{
"end": "17:00",
"start": "09:00"
}
]
},
"location": {
"latitude": 48.8566,
"longitude": 2.3522
}
}
]
}
Returns all saved charging locations for a vehicle and their associated charging limits, schedules and configurations.
curl "https://api.smartcar.com/v2.0/vehicles/{id}/{make}/charge/schedule_by_location" \
-H "Authorization: Bearer {token}" \
-X "GET"
{
"chargingLocations": [
{
"chargeLimit": 0.8,
"chargingSchedules": {
"weekday": [
{
"end": "17:00",
"start": "09:00"
}
],
"weekend": [
{
"end": "17:00",
"start": "09:00"
}
]
},
"location": {
"latitude": 48.8566,
"longitude": 2.3522
}
}
]
}
ford
and lincoln
read_charge_locations
curl "https://api.smartcar.com/v2.0/vehicles/{id}/{make}/charge/schedule_by_location" \
-H "Authorization: Bearer {token}" \
-X "GET"
Show child attributes
Show child attributes
{
"chargingLocations": [
{
"chargeLimit": 0.8,
"chargingSchedules": {
"weekday": [
{
"end": "17:00",
"start": "09:00"
}
],
"weekend": [
{
"end": "17:00",
"start": "09:00"
}
]
},
"location": {
"latitude": 48.8566,
"longitude": 2.3522
}
}
]
}
Vehicle will charge at any time
{
"chargingLocations": [
{
"chargeLimit": 0.8,
"chargingSchedules": {
"weekday": [],
"weekend": []
},
"location": {
"latitude": 48.8566,
"longitude": 2.3522
}
}
]
}
Vehicle has a schedule for Weekdays only
{
"chargingLocations": [
{
"chargeLimit": 0.8,
"chargingSchedules": {
"weekday": [
{
"end": "17:00",
"start": "09:00"
}
],
"weekend": []
},
"location": {
"latitude": 48.8566,
"longitude": 2.3522
}
}
]
}
Vehicle has a schedule for Weekends only
{
"chargingLocation" : {
"chargeLimit": 0.9,
"chargingSchedules": {
"weekday": [],
"weekend": [
{
"start": "16:00",
"end": "07:00"
}
]
}
}
}
Was this page helpful?