跳转到主要内容
Mutation

创建联网车辆

使用 createConnectedVehicle 变更将车辆连接到连接服务提供商。当您希望直接从车辆获取实时车辆数据,而不是依赖路线计算时,此操作非常有用。

变更

创建联网车辆需要 vehicle_id 和 provider,以及特定于提供商的 options。该变更会返回联网车辆的 id 和 authorization_url,可用于通过 authorizeConnectedVehicle 变更完成授权。

参数

input· CreateConnectedVehicleInput

字段

id· ID
Unique ID of the connected vehicle
vehicle_id· ID
Unique ID of the vehicle
status· ConnectedVehicleStatus
Status of the connected vehicle
ConnectedVehicleStatus enum values
pending_authorization

Vehicle was added to the Chargetrip Connect platform but not yet authorized

authorized

Vehicle was authorized. Chargetrip can retrieve data on behalf of the user

pending_removal

Pending vehicle removal

removed

Vehicle was removed and access has been revoked

authorization_url· String
URL to connect the vehicle to the connectivity provider
provider· CarConnectivityProvider
Connectivity provider
CarConnectivityProvider enum values
Enode

scope· ConnectScope
Scope for accessing the vehicle
ConnectScope enum values
location

Vehicle location, applicable for: Enode

charge_state

Charge state, applicable for: Enode

odometer

Odometer reading, applicable for: Enode

label· String
Custom label for a connected vehicle that can be assigned by a user
vin· String
Vehicle identification number, unique identifier for a vehicle

操作可能会失败。请考虑以下错误场景以正确处理。有关错误的更多信息 here.

auth_token_expired
The token you provided is expired.
auth_token_invalid
The token you provided is invalid.
connect_provider_not_allowed
The Connect provider $PROVIDER is not configured for your client id. Please contact customer support to enable it!
connected_vehicle_per_make_limit_reached
The maximum number of vehicles per make ($LIMIT) was reached.
connected_vehicle_removal_not_allowed
You cannot remove a vehicle with status $STATUS.
enode_proxy_exception
Enode remote did throw an exception that could not be handled.
new_connected_vehicle_invalid_options_enode
Provided options are invalid. Enode requires the following options: redirect_uri, scope.
operation_not_allowed
You are not allowed to execute this operation. Enable it for the current application in the dashboard or reach out to customer support.
rate_limit_exceeded
Rate limit exceeded.
vehicle_already_connected
This vehicle has already been connected to a provider for this user.

此内容是否有帮助?

开发者

Chargetrip ©

状态未知

管理 Cookie

生效日期: 2024 年 3 月 20 日 · 更新日期: 2023 年 1 月 25 日

我们使用 Cookie 来帮助改善您在 developers.chargetrip.com 上的体验。本 Cookie 政策是隐私政策的一部分,涵盖您的设备与我们网站之间的 Cookie 使用情况。我们还提供我们可能使用的第三方服务的基本信息,这些服务也可能在其服务中使用 Cookie,但不在我们的政策涵盖范围内。

如果您不希望接受我们的任何 Cookie,应指示您的浏览器拒绝来自 developers.chargetrip.com 的 Cookie,但请理解,我们可能因此无法为您提供某些您所需的内容和服务。

Cookie 是网站在您访问时存储在您设备上的一小段数据,通常包含有关该网站本身的信息、使网站在您再次访问时识别您的网络浏览器的唯一标识符、服务于 Cookie 自身用途的其他数据,以及 Cookie 自身的有效期。

Cookie 用于启用某些功能(例如登录)、跟踪网站使用情况(例如分析)、存储您的用户设置(例如时区、通知偏好),以及个性化您的内容(例如广告、语言)。

由您所访问的网站设置的 Cookie 通常称为“第一方 Cookie”,通常只跟踪您在该特定网站上的活动。由其他网站和公司(即第三方)设置的 Cookie 可用于在使用同一第三方服务的其他网站上跟踪您。

由您所访问的网站设置的 Cookie 通常称为“第一方 Cookie”,通常只跟踪您在该特定网站上的活动。由其他网站和公司(即第三方)设置的 Cookie 可用于在使用同一第三方服务的其他网站上跟踪您。

定向/广告 Cookie 用于确定哪些推广内容与您及您的兴趣更相关、更合适。网站可能使用它们来投放定向广告,或限制您看到某则广告的次数。这有助于公司提高其营销活动的有效性以及呈现给您的内容的质量。这些 Cookie 可能由您所访问的网站(第一方)或第三方服务设置。由第三方设置的定向/广告 Cookie 可用于在使用同一第三方服务的其他网站上跟踪您。我们在我们的网站上使用定向/广告 Cookie。

定向/广告 Cookie 用于确定哪些推广内容与您及您的兴趣更相关、更合适。网站可能使用它们来投放定向广告,或限制您看到某则广告的次数。这有助于公司提高其营销活动的有效性以及呈现给您的内容的质量。这些 Cookie 可能由您所访问的网站(第一方)或第三方服务设置。由第三方设置的定向/广告 Cookie 可用于在使用同一第三方服务的其他网站上跟踪您。我们在我们的网站上使用定向/广告 Cookie。

第三方承诺

在启用所有第三方提供商的服务之前,我们会审查其隐私政策,以确保其做法与我们一致。我们绝不会故意引入损害或违反用户隐私的第三方服务。

Cookie
google-cookie-consent
描述
存储您的 Cookie 偏好,即您已接受或拒绝了哪些类别,以便我们在您每次访问时都尊重您的选择,并仅加载您允许的分析或营销工具。
有效期
2 年

如果您不希望接受我们的 Cookie,可以指示您的浏览器拒绝来自我们网站的 Cookie。大多数浏览器默认配置为接受 Cookie,但您可以更新这些设置,以完全拒绝 Cookie,或在网站尝试设置 Cookie 时通知您。

如果您使用多台设备浏览网站,可能需要在每台设备上分别更新您的设置。

虽然阻止某些 Cookie 对网站体验的影响很小,但阻止所有 Cookie 可能意味着您无法访问您所浏览网站上的某些功能和内容。

我们可能会不时更新本 Cookie 政策,例如以反映我们所使用 Cookie 的变化,或出于其他运营、法律或监管原因。请重新访问本 Cookie 政策,以了解我们对 Cookie 及相关技术的使用情况。本 Cookie 政策顶部的日期表示其最近一次更新的时间。