Skip to content

Latest commit

 

History

History
1270 lines (960 loc) · 62.4 KB

TripsApi.md

File metadata and controls

1270 lines (960 loc) · 62.4 KB

psa_connectedcar.TripsApi

All URIs are relative to https://api.groupe-psa.com/connectedcar/v4

Method HTTP request Description
get_path_for_trip GET /user/trips/{tid}/wayPoints OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
get_path_for_trip_0 GET /user/vehicles/{id}/trips/{tid}/wayPoints OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
get_telemetry_for_trip GET /user/trips/{tid}/telemetry OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
get_telemetry_for_trip_0 GET /user/vehicles/{id}/trips/{tid}/telemetry OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
get_trip_by_vehicle GET /user/vehicles/{id}/trips/{tid} OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
get_trips_by_vehicle GET /user/trips/{tid} OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
get_trips_by_vehicle_0 GET /user/trips/{tid}/ecoaching OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
get_trips_by_vehicle_1 GET /user/vehicles/{id}/trips OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
get_trips_by_vehicle_2 GET /user/vehicles/{id}/trips/{tid}/ecoaching OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
get_user_collision_by_tip_by_id GET /user/trips/{tid}/collisions/{cid} OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
get_user_collisions_by_trip_id GET /user/trips/{tid}/collisions OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
get_user_trip_alert_by_aid GET /user/trips/{tid}/alerts/{aid} OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
get_user_trip_alerts GET /user/trips/{tid}/alerts OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
get_user_trips GET /user/trips OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
get_vehicle_collision_by_tip_by_id GET /user/vehicles/{id}/trips/{tid}/collisions/{cid} OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
get_vehicle_collisions_by_trip_id GET /user/vehicles/{id}/trips/{tid}/collisions OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
get_vehicle_trip_alert_by_aid GET /user/vehicles/{id}/trips/{tid}/alerts/{aid} OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
get_vehicle_trip_alerts GET /user/vehicles/{id}/trips/{tid}/alerts OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

get_path_for_trip

WayPoints get_path_for_trip(tid, index_range=index_range)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

Gives the wayPoints for a specified User Trip.

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
tid = 'tid_example' # str | the *id* of Trip
index_range = '0-' # str | Results indexes will be included in this range (see **indexRange** model).      default: 0-    example: 0-, 0-5 (optional) (default to 0-)

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_path_for_trip(tid, index_range=index_range)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_path_for_trip: %s\n" % e)

Parameters

Name Type Description Notes
tid str the id of Trip
index_range str Results indexes will be included in this range (see indexRange model). default: 0- example: 0-, 0-5 [optional] [default to 0-]

Return type

WayPoints

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/hal+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_path_for_trip_0

WayPoints get_path_for_trip_0(id, tid, index_range=index_range, timestamps=timestamps, tolerance=tolerance)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

Gives the Vehicle's wayPoints for a specified Trip.

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
id = 'id_example' # str | Results will only be related to this Vehicle *id*.
tid = 'tid_example' # str | the *id* of Trip
index_range = '0-' # str | Results indexes will be included in this range (see **indexRange** model).      default: 0-    example: 0-, 0-5 (optional) (default to 0-)
timestamps = [connected_car_api.TimeRange()] # list[TimeRange] | Array of **\"timestamp\"** ranges. Results will contain results whose timestamps are included in those date-time ranges (see **timestamp** data  model).**\"timestamp\"** items should be expressed as in '[RFC3339](https://www.ietf.org/rfc/rfc3339.txt)'. (optional)
tolerance = 3.4 # float | Tolerance factor is expressed in length KM unit and is used to simplify path by reducing the total number of points by is using Douglas-Peucker algorithme to find a similar curve with fewer points (find more info here: [Ramer_Douglas_Peucker_algorithm](https://en.wikipedia.org/wiki/Ramer%E2%80%93Douglas%E2%80%93Peucker_algorithm#Algorithm) ).  (optional)

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_path_for_trip_0(id, tid, index_range=index_range, timestamps=timestamps, tolerance=tolerance)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_path_for_trip_0: %s\n" % e)

Parameters

Name Type Description Notes
id str Results will only be related to this Vehicle id.
tid str the id of Trip
index_range str Results indexes will be included in this range (see indexRange model). default: 0- example: 0-, 0-5 [optional] [default to 0-]
timestamps list[TimeRange] Array of "timestamp" ranges. Results will contain results whose timestamps are included in those date-time ranges (see timestamp data model)."timestamp" items should be expressed as in 'RFC3339'. [optional]
tolerance float Tolerance factor is expressed in length KM unit and is used to simplify path by reducing the total number of points by is using Douglas-Peucker algorithme to find a similar curve with fewer points (find more info here: Ramer_Douglas_Peucker_algorithm ). [optional]

Return type

WayPoints

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/hal+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_telemetry_for_trip

Telemetry get_telemetry_for_trip(tid, timestamps=timestamps, index_range=index_range, locale=locale, type=type, extension=extension)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

Returns the set of Telemetry values that occurred for a given vehicle (id) and a speific Trip (tid) during the timestamp ranges and bounded by an index range.

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
tid = 'tid_example' # str | the *id* of Trip
timestamps = [connected_car_api.TimeRange()] # list[TimeRange] | Array of **\"timestamp\"** ranges. Results will contain results whose timestamps are included in those date-time ranges (see **timestamp** data  model).**\"timestamp\"** items should be expressed as in '[RFC3339](https://www.ietf.org/rfc/rfc3339.txt)'. (optional)
index_range = '0-' # str | Results indexes will be included in this range (see **indexRange** model).      default: 0-    example: 0-, 0-5 (optional) (default to 0-)
locale = 'locale_example' # str | Locale is used for rendering text, correctly displaying regional monetary values, time and date formats. Respect REGEX \\w(-\\w)? (optional)
type = ['type_example'] # list[str] | Results will only contain Telemetry messages of this kind. You can add more than one message type. (optional)
extension = ['extension_example'] # list[str] | Additional data set that will be included in embedded field    * _Disclaimer_:  **Enabling ```maintenance``` extension will automatically disable ```Kinetic``` telemetry message** (optional)

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_telemetry_for_trip(tid, timestamps=timestamps, index_range=index_range, locale=locale, type=type, extension=extension)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_telemetry_for_trip: %s\n" % e)

Parameters

Name Type Description Notes
tid str the id of Trip
timestamps list[TimeRange] Array of "timestamp" ranges. Results will contain results whose timestamps are included in those date-time ranges (see timestamp data model)."timestamp" items should be expressed as in 'RFC3339'. [optional]
index_range str Results indexes will be included in this range (see indexRange model). default: 0- example: 0-, 0-5 [optional] [default to 0-]
locale str Locale is used for rendering text, correctly displaying regional monetary values, time and date formats. Respect REGEX \w(-\w)? [optional]
type list[str] Results will only contain Telemetry messages of this kind. You can add more than one message type. [optional]
extension list[str] Additional data set that will be included in embedded field * Disclaimer: Enabling ```maintenance``` extension will automatically disable ```Kinetic``` telemetry message [optional]

Return type

Telemetry

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_telemetry_for_trip_0

Telemetry get_telemetry_for_trip_0(id, tid, timestamps=timestamps, index_range=index_range, locale=locale, type=type, extension=extension)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

Returns the set of Telemetry values that occurred for a given vehicle (id) and a speific Trip (tid) during the timestamp ranges and bounded by an index range.

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
id = 'id_example' # str | Results will only be related to this Vehicle *id*.
tid = 'tid_example' # str | the *id* of Trip
timestamps = [connected_car_api.TimeRange()] # list[TimeRange] | Array of **\"timestamp\"** ranges. Results will contain results whose timestamps are included in those date-time ranges (see **timestamp** data  model).**\"timestamp\"** items should be expressed as in '[RFC3339](https://www.ietf.org/rfc/rfc3339.txt)'. (optional)
index_range = '0-' # str | Results indexes will be included in this range (see **indexRange** model).      default: 0-    example: 0-, 0-5 (optional) (default to 0-)
locale = 'locale_example' # str | Locale is used for rendering text, correctly displaying regional monetary values, time and date formats. Respect REGEX \\w(-\\w)? (optional)
type = ['type_example'] # list[str] | Results will only contain Telemetry messages of this kind. You can add more than one message type. (optional)
extension = ['extension_example'] # list[str] | Additional data set that will be included in embedded field    * _Disclaimer_:  **Enabling ```maintenance``` extension will automatically disable ```Kinetic``` telemetry message** (optional)

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_telemetry_for_trip_0(id, tid, timestamps=timestamps, index_range=index_range, locale=locale, type=type, extension=extension)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_telemetry_for_trip_0: %s\n" % e)

Parameters

Name Type Description Notes
id str Results will only be related to this Vehicle id.
tid str the id of Trip
timestamps list[TimeRange] Array of "timestamp" ranges. Results will contain results whose timestamps are included in those date-time ranges (see timestamp data model)."timestamp" items should be expressed as in 'RFC3339'. [optional]
index_range str Results indexes will be included in this range (see indexRange model). default: 0- example: 0-, 0-5 [optional] [default to 0-]
locale str Locale is used for rendering text, correctly displaying regional monetary values, time and date formats. Respect REGEX \w(-\w)? [optional]
type list[str] Results will only contain Telemetry messages of this kind. You can add more than one message type. [optional]
extension list[str] Additional data set that will be included in embedded field * Disclaimer: Enabling ```maintenance``` extension will automatically disable ```Kinetic``` telemetry message [optional]

Return type

Telemetry

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_trip_by_vehicle

Trip get_trip_by_vehicle(id, tid)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

This method returns the Trip that matches the Trip id (tid) a given Vehicle (id) has taken.

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
id = 'id_example' # str | Results will only be related to this Vehicle *id*.
tid = 'tid_example' # str | the *id* of Trip

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_trip_by_vehicle(id, tid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_trip_by_vehicle: %s\n" % e)

Parameters

Name Type Description Notes
id str Results will only be related to this Vehicle id.
tid str the id of Trip

Return type

Trip

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_trips_by_vehicle

Trip get_trips_by_vehicle(tid)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

This method returns the Trip that matches the Trip id (tid) User has taken.

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
tid = 'tid_example' # str | the *id* of Trip

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_trips_by_vehicle(tid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_trips_by_vehicle: %s\n" % e)

Parameters

Name Type Description Notes
tid str the id of Trip

Return type

Trip

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/hal+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_trips_by_vehicle_0

ECoaching get_trips_by_vehicle_0(tid, locale=locale)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

Return the User Trip ECoaching evaluation.

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
tid = 'tid_example' # str | the *id* of Trip
locale = 'locale_example' # str | Locale is used for rendering text, correctly displaying regional monetary values, time and date formats. Respect REGEX \\w(-\\w)? (optional)

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_trips_by_vehicle_0(tid, locale=locale)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_trips_by_vehicle_0: %s\n" % e)

Parameters

Name Type Description Notes
tid str the id of Trip
locale str Locale is used for rendering text, correctly displaying regional monetary values, time and date formats. Respect REGEX \w(-\w)? [optional]

Return type

ECoaching

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/hal+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_trips_by_vehicle_1

Trips get_trips_by_vehicle_1(id, timestamps=timestamps, index_range=index_range, page_size=page_size, page_token=page_token)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

This method returns a list of all Trips that a given Vehicle has taken. This will NOT include Trips that have not yet been completed.

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
id = 'id_example' # str | Results will only be related to this Vehicle *id*.
timestamps = [connected_car_api.TimeRange()] # list[TimeRange] | Array of **\"timestamp\"** ranges. Results will contain results whose timestamps are included in those date-time ranges (see **timestamp** data  model).**\"timestamp\"** items should be expressed as in '[RFC3339](https://www.ietf.org/rfc/rfc3339.txt)'. (optional)
index_range = '0-' # str | Results indexes will be included in this range (see **indexRange** model).      default: 0-    example: 0-, 0-5 (optional) (default to 0-)
page_size = 60 # int | The maximum number of results (for a collection results response) to return per page. When not set, at most 60 results will be returned.   (optional) (default to 60)
page_token = 'page_token_example' # str | Start-Page marker, the token for continuing a previous list request on the next page. It is built and used **only** by the server. (optional)

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_trips_by_vehicle_1(id, timestamps=timestamps, index_range=index_range, page_size=page_size, page_token=page_token)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_trips_by_vehicle_1: %s\n" % e)

Parameters

Name Type Description Notes
id str Results will only be related to this Vehicle id.
timestamps list[TimeRange] Array of "timestamp" ranges. Results will contain results whose timestamps are included in those date-time ranges (see timestamp data model)."timestamp" items should be expressed as in 'RFC3339'. [optional]
index_range str Results indexes will be included in this range (see indexRange model). default: 0- example: 0-, 0-5 [optional] [default to 0-]
page_size int The maximum number of results (for a collection results response) to return per page. When not set, at most 60 results will be returned. [optional] [default to 60]
page_token str Start-Page marker, the token for continuing a previous list request on the next page. It is built and used only by the server. [optional]

Return type

Trips

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_trips_by_vehicle_2

ECoaching get_trips_by_vehicle_2(id, tid, locale=locale)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

Return the Trip ECoaching evaluation.

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
id = 'id_example' # str | Results will only be related to this Vehicle *id*.
tid = 'tid_example' # str | the *id* of Trip
locale = 'locale_example' # str | Locale is used for rendering text, correctly displaying regional monetary values, time and date formats. Respect REGEX \\w(-\\w)? (optional)

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_trips_by_vehicle_2(id, tid, locale=locale)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_trips_by_vehicle_2: %s\n" % e)

Parameters

Name Type Description Notes
id str Results will only be related to this Vehicle id.
tid str the id of Trip
locale str Locale is used for rendering text, correctly displaying regional monetary values, time and date formats. Respect REGEX \w(-\w)? [optional]

Return type

ECoaching

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_user_collision_by_tip_by_id

Collision get_user_collision_by_tip_by_id(tid, cid)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

Returns the Collision(cid) that occurred for a given vehicle(id) during a Trip(tid) .

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
tid = 'tid_example' # str | the *id* of Trip
cid = 'cid_example' # str | Results will only contain the Collision related to this Collision *id*.

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_user_collision_by_tip_by_id(tid, cid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_user_collision_by_tip_by_id: %s\n" % e)

Parameters

Name Type Description Notes
tid str the id of Trip
cid str Results will only contain the Collision related to this Collision id.

Return type

Collision

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_user_collisions_by_trip_id

Collisions get_user_collisions_by_trip_id(tid, timestamps=timestamps, index_range=index_range, page_size=page_size, page_token=page_token)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

Returns the set of Collisions that occurred for a given vehicle (id) and a speific Trip (tid) during the timestamp ranges and bounded by an index range.

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
tid = 'tid_example' # str | the *id* of Trip
timestamps = [connected_car_api.TimeRange()] # list[TimeRange] | Array of **\"timestamp\"** ranges. Results will contain results whose timestamps are included in those date-time ranges (see **timestamp** data  model).**\"timestamp\"** items should be expressed as in '[RFC3339](https://www.ietf.org/rfc/rfc3339.txt)'. (optional)
index_range = '0-' # str | Results indexes will be included in this range (see **indexRange** model).      default: 0-    example: 0-, 0-5 (optional) (default to 0-)
page_size = 60 # int | The maximum number of results (for a collection results response) to return per page. When not set, at most 60 results will be returned.   (optional) (default to 60)
page_token = 'page_token_example' # str | Start-Page marker, the token for continuing a previous list request on the next page. It is built and used **only** by the server. (optional)

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_user_collisions_by_trip_id(tid, timestamps=timestamps, index_range=index_range, page_size=page_size, page_token=page_token)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_user_collisions_by_trip_id: %s\n" % e)

Parameters

Name Type Description Notes
tid str the id of Trip
timestamps list[TimeRange] Array of "timestamp" ranges. Results will contain results whose timestamps are included in those date-time ranges (see timestamp data model)."timestamp" items should be expressed as in 'RFC3339'. [optional]
index_range str Results indexes will be included in this range (see indexRange model). default: 0- example: 0-, 0-5 [optional] [default to 0-]
page_size int The maximum number of results (for a collection results response) to return per page. When not set, at most 60 results will be returned. [optional] [default to 60]
page_token str Start-Page marker, the token for continuing a previous list request on the next page. It is built and used only by the server. [optional]

Return type

Collisions

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_user_trip_alert_by_aid

Alert get_user_trip_alert_by_aid(tid, aid, locale=locale)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

Returns information about a specific alert messages for a given Trip.

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
tid = 'tid_example' # str | the *id* of Trip
aid = 'aid_example' # str | id of the alert.
locale = 'locale_example' # str | Locale is used for rendering text, correctly displaying regional monetary values, time and date formats. Respect REGEX \\w(-\\w)? (optional)

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_user_trip_alert_by_aid(tid, aid, locale=locale)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_user_trip_alert_by_aid: %s\n" % e)

Parameters

Name Type Description Notes
tid str the id of Trip
aid str id of the alert.
locale str Locale is used for rendering text, correctly displaying regional monetary values, time and date formats. Respect REGEX \w(-\w)? [optional]

Return type

Alert

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_user_trip_alerts

Alerts get_user_trip_alerts(tid, timestamps=timestamps, index_range=index_range, page_size=page_size, page_token=page_token, locale=locale)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

Returns the latest alert messages during a Trip.

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
tid = 'tid_example' # str | the *id* of Trip
timestamps = [connected_car_api.TimeRange()] # list[TimeRange] | Array of **\"timestamp\"** ranges. Results will contain results whose timestamps are included in those date-time ranges (see **timestamp** data  model).**\"timestamp\"** items should be expressed as in '[RFC3339](https://www.ietf.org/rfc/rfc3339.txt)'. (optional)
index_range = '0-' # str | Results indexes will be included in this range (see **indexRange** model).      default: 0-    example: 0-, 0-5 (optional) (default to 0-)
page_size = 60 # int | The maximum number of results (for a collection results response) to return per page. When not set, at most 60 results will be returned.   (optional) (default to 60)
page_token = 'page_token_example' # str | Start-Page marker, the token for continuing a previous list request on the next page. It is built and used **only** by the server. (optional)
locale = 'locale_example' # str | Locale is used for rendering text, correctly displaying regional monetary values, time and date formats. (optional)

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_user_trip_alerts(tid, timestamps=timestamps, index_range=index_range, page_size=page_size, page_token=page_token, locale=locale)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_user_trip_alerts: %s\n" % e)

Parameters

Name Type Description Notes
tid str the id of Trip
timestamps list[TimeRange] Array of "timestamp" ranges. Results will contain results whose timestamps are included in those date-time ranges (see timestamp data model)."timestamp" items should be expressed as in 'RFC3339'. [optional]
index_range str Results indexes will be included in this range (see indexRange model). default: 0- example: 0-, 0-5 [optional] [default to 0-]
page_size int The maximum number of results (for a collection results response) to return per page. When not set, at most 60 results will be returned. [optional] [default to 60]
page_token str Start-Page marker, the token for continuing a previous list request on the next page. It is built and used only by the server. [optional]
locale str Locale is used for rendering text, correctly displaying regional monetary values, time and date formats. [optional]

Return type

Alerts

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_user_trips

Trips get_user_trips(timestamps=timestamps, index_range=index_range, page_size=page_size, page_token=page_token)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

This method returns a list of all Trips the User has taken. This will NOT include Trips that have not yet been completed.

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
timestamps = [connected_car_api.TimeRange()] # list[TimeRange] | Array of **\"timestamp\"** ranges. Results will contain results whose timestamps are included in those date-time ranges (see **timestamp** data  model).**\"timestamp\"** items should be expressed as in '[RFC3339](https://www.ietf.org/rfc/rfc3339.txt)'. (optional)
index_range = '0-' # str | Results indexes will be included in this range (see **indexRange** model).      default: 0-    example: 0-, 0-5 (optional) (default to 0-)
page_size = 60 # int | The maximum number of results (for a collection results response) to return per page. When not set, at most 60 results will be returned.   (optional) (default to 60)
page_token = 'page_token_example' # str | Start-Page marker, the token for continuing a previous list request on the next page. It is built and used **only** by the server. (optional)

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_user_trips(timestamps=timestamps, index_range=index_range, page_size=page_size, page_token=page_token)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_user_trips: %s\n" % e)

Parameters

Name Type Description Notes
timestamps list[TimeRange] Array of "timestamp" ranges. Results will contain results whose timestamps are included in those date-time ranges (see timestamp data model)."timestamp" items should be expressed as in 'RFC3339'. [optional]
index_range str Results indexes will be included in this range (see indexRange model). default: 0- example: 0-, 0-5 [optional] [default to 0-]
page_size int The maximum number of results (for a collection results response) to return per page. When not set, at most 60 results will be returned. [optional] [default to 60]
page_token str Start-Page marker, the token for continuing a previous list request on the next page. It is built and used only by the server. [optional]

Return type

Trips

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/hal+json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_vehicle_collision_by_tip_by_id

Collision get_vehicle_collision_by_tip_by_id(id, tid, cid)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

Returns the Collision(cid) that occurred for a given vehicle(id) during a Trip(tid) .

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
id = 'id_example' # str | Results will only be related to this Vehicle *id*.
tid = 'tid_example' # str | the *id* of Trip
cid = 'cid_example' # str | Results will only contain the Collision related to this Collision *id*.

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_vehicle_collision_by_tip_by_id(id, tid, cid)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_vehicle_collision_by_tip_by_id: %s\n" % e)

Parameters

Name Type Description Notes
id str Results will only be related to this Vehicle id.
tid str the id of Trip
cid str Results will only contain the Collision related to this Collision id.

Return type

Collision

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_vehicle_collisions_by_trip_id

Collisions get_vehicle_collisions_by_trip_id(id, tid, timestamps=timestamps, index_range=index_range, page_size=page_size, page_token=page_token)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

Returns the set of Collisions that occurred for a given vehicle (id) and a speific Trip (tid) during the timestamp ranges and bounded by an index range.

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
id = 'id_example' # str | Results will only be related to this Vehicle *id*.
tid = 'tid_example' # str | the *id* of Trip
timestamps = [connected_car_api.TimeRange()] # list[TimeRange] | Array of **\"timestamp\"** ranges. Results will contain results whose timestamps are included in those date-time ranges (see **timestamp** data  model).**\"timestamp\"** items should be expressed as in '[RFC3339](https://www.ietf.org/rfc/rfc3339.txt)'. (optional)
index_range = '0-' # str | Results indexes will be included in this range (see **indexRange** model).      default: 0-    example: 0-, 0-5 (optional) (default to 0-)
page_size = 60 # int | The maximum number of results (for a collection results response) to return per page. When not set, at most 60 results will be returned.   (optional) (default to 60)
page_token = 'page_token_example' # str | Start-Page marker, the token for continuing a previous list request on the next page. It is built and used **only** by the server. (optional)

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_vehicle_collisions_by_trip_id(id, tid, timestamps=timestamps, index_range=index_range, page_size=page_size, page_token=page_token)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_vehicle_collisions_by_trip_id: %s\n" % e)

Parameters

Name Type Description Notes
id str Results will only be related to this Vehicle id.
tid str the id of Trip
timestamps list[TimeRange] Array of "timestamp" ranges. Results will contain results whose timestamps are included in those date-time ranges (see timestamp data model)."timestamp" items should be expressed as in 'RFC3339'. [optional]
index_range str Results indexes will be included in this range (see indexRange model). default: 0- example: 0-, 0-5 [optional] [default to 0-]
page_size int The maximum number of results (for a collection results response) to return per page. When not set, at most 60 results will be returned. [optional] [default to 60]
page_token str Start-Page marker, the token for continuing a previous list request on the next page. It is built and used only by the server. [optional]

Return type

Collisions

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_vehicle_trip_alert_by_aid

Alert get_vehicle_trip_alert_by_aid(id, tid, aid, locale=locale)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

Returns information about a specific alert messages for a given Vehicle and Trip.

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
id = 'id_example' # str | Results will only be related to this Vehicle *id*.
tid = 'tid_example' # str | the *id* of Trip
aid = 'aid_example' # str | id of the alert.
locale = 'locale_example' # str | Locale is used for rendering text, correctly displaying regional monetary values, time and date formats. Respect REGEX \\w(-\\w)? (optional)

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_vehicle_trip_alert_by_aid(id, tid, aid, locale=locale)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_vehicle_trip_alert_by_aid: %s\n" % e)

Parameters

Name Type Description Notes
id str Results will only be related to this Vehicle id.
tid str the id of Trip
aid str id of the alert.
locale str Locale is used for rendering text, correctly displaying regional monetary values, time and date formats. Respect REGEX \w(-\w)? [optional]

Return type

Alert

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_vehicle_trip_alerts

Alerts get_vehicle_trip_alerts(id, tid, timestamps=timestamps, index_range=index_range, page_size=page_size, page_token=page_token, locale=locale)

OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE

Returns the latest alert messages for a Vehicle.

Example

from __future__ import print_function
import time
import connected_car_api
from connected_car_api.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: Vehicle_auth
configuration = connected_car_api.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'
# Configure API key authorization: client_id
configuration = connected_car_api.Configuration()
configuration.api_key['client_id'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['client_id'] = 'Bearer'
# Configure API key authorization: realm
configuration = connected_car_api.Configuration()
configuration.api_key['x-introspect-realm'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['x-introspect-realm'] = 'Bearer'

# create an instance of the API class
api_instance = connected_car_api.TripsApi(connected_car_api.ApiClient(configuration))
id = 'id_example' # str | Results will only be related to this Vehicle *id*.
tid = 'tid_example' # str | the *id* of Trip
timestamps = [connected_car_api.TimeRange()] # list[TimeRange] | Array of **\"timestamp\"** ranges. Results will contain results whose timestamps are included in those date-time ranges (see **timestamp** data  model).**\"timestamp\"** items should be expressed as in '[RFC3339](https://www.ietf.org/rfc/rfc3339.txt)'. (optional)
index_range = '0-' # str | Results indexes will be included in this range (see **indexRange** model).      default: 0-    example: 0-, 0-5 (optional) (default to 0-)
page_size = 60 # int | The maximum number of results (for a collection results response) to return per page. When not set, at most 60 results will be returned.   (optional) (default to 60)
page_token = 'page_token_example' # str | Start-Page marker, the token for continuing a previous list request on the next page. It is built and used **only** by the server. (optional)
locale = 'locale_example' # str | Locale is used for rendering text, correctly displaying regional monetary values, time and date formats. (optional)

try:
    # OUT OF 1ST RELEASE (R-LEV 1.1) SCOPE
    api_response = api_instance.get_vehicle_trip_alerts(id, tid, timestamps=timestamps, index_range=index_range, page_size=page_size, page_token=page_token, locale=locale)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling TripsApi->get_vehicle_trip_alerts: %s\n" % e)

Parameters

Name Type Description Notes
id str Results will only be related to this Vehicle id.
tid str the id of Trip
timestamps list[TimeRange] Array of "timestamp" ranges. Results will contain results whose timestamps are included in those date-time ranges (see timestamp data model)."timestamp" items should be expressed as in 'RFC3339'. [optional]
index_range str Results indexes will be included in this range (see indexRange model). default: 0- example: 0-, 0-5 [optional] [default to 0-]
page_size int The maximum number of results (for a collection results response) to return per page. When not set, at most 60 results will be returned. [optional] [default to 60]
page_token str Start-Page marker, the token for continuing a previous list request on the next page. It is built and used only by the server. [optional]
locale str Locale is used for rendering text, correctly displaying regional monetary values, time and date formats. [optional]

Return type

Alerts

Authorization

Vehicle_auth, client_id, realm

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]