Documentation
¶
Index ¶
Constants ¶
View Source
const ( BaseUrl = "https://oneapp:oneapp@b2c-login.toyota-europe.com" ApiBaseUrl = "https://ctpa-oneapi.tceu-ctp-prd.toyotaconnectedeurope.io" AccessTokenPath = "oauth2/realms/root/realms/tme/access_token" AuthenticationPath = "json/realms/root/realms/tme/authenticate?authIndexType=service&authIndexValue=oneapp" AuthorizationPath = "" /* 198-byte string literal not displayed */ VehicleGuidPath = "v2/vehicle/guid" RemoteElectricStatusPath = "v1/global/remote/electric/status" ApiKey = "tTZipv6liF74PwMfk9Ed68AQ0bISswwf3iHQdqcF" )
View Source
const ( APIVersion = "protocol=1.0,resource=2.1" ClientID = "oneapp" ClientSecret = "6GKIax7fGT5yPHuNmWNVOc4q5POBw1WRSW39ubRA8WPBmQ7MOxhm75EsmKMKENem" Scope = "openid profile vehicles" Realm = "a-ncb-prod" RedirectURI = "com.toyota.oneapp:/oauth2Callback" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { AuthID string `json:"authId"` Callbacks []AuthCallback `json:"callbacks"` }
type AuthCallback ¶
type AuthCallback struct { Id int8 `json:"_id"` Type string `json:"type"` Output []AuthCallbackValue `json:"output"` Input []AuthCallbackValue `json:"input"` }
type AuthCallbackValue ¶
type AuthCallbackValue struct { Name string `json:"name"` Value interface{} `json:"value"` }
type Identity ¶
type Identity struct { *request.Helper oauth2.TokenSource // contains filtered or unexported fields }
func NewIdentity ¶
type Status ¶
type Status struct { Status struct { Messages []struct { ResponseCode string `json:"responseCode"` Description string `json:"description"` DetailedDescription string `json:"detailedDescription"` } `json:"messages"` } `json:"status"` Payload struct { BatteryLevel int `json:"batteryLevel"` ChargingStatus string `json:"chargingStatus"` EvRange EvRange `json:"evRange"` EvRangeWithAc EvRange `json:"evRangeWithAc"` LastUpdateTimestamp string `json:"lastUpdateTimestamp"` } `json:"payload"` }
Click to show internal directories.
Click to hide internal directories.