Documentation ¶
Index ¶
Constants ¶
View Source
const ( ApiURI = "https://channels.sdpr-01.fcagcv.com" ApiKey = "3_mOx_J2dRgjXYCdyhchv3b5lhi54eBcdCTX4BI8MORqmZCoQWhA0mV2PTlptLGUQI" XApiKey = "qLYupk65UU1tw2Ih1cJhs4izijgRDbir2UFHA3Je" AuthURI = "https://mfa.fcl-01.fcagcv.com" XAuthApiKey = "JWRYW7IYhW9v0RqDghQSx4UcRYRILNmc8zAuh5ys" )
View Source
const ( LoginURI = "https://loginmyuconnect.fiat.com" TokenURI = "https://authz.sdpr-01.fcagcv.com/v2/cognito/identity/token" Region = "eu-west-1" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionResponse ¶
type Identity ¶
func NewIdentity ¶
NewIdentity creates Fiat identity
type LocationResponse ¶
type PinAuthResponse ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
type StatusResponse ¶
type StatusResponse struct { VehicleInfo struct { Odometer struct { Odometer struct { Value int `json:",string"` Unit string } } Timestamp TimeMillis } EvInfo *struct { Battery struct { ChargingLevel string // LEVEL_2 ChargingStatus string // CHARGING DistanceToEmpty struct { Value int Unit string } PlugInStatus bool // true StateOfCharge float64 // 75 TimeToFullyChargeL1 int // 0 TimeToFullyChargeL2 int // 540 TotalRange int // 17 } Timestamp TimeMillis } `json:",omitempty"` Timestamp TimeMillis }
type TimeMillis ¶
TimeMillis implements JSON unmarshal for Unix timestamps in milliseconds
func (*TimeMillis) UnmarshalJSON ¶
func (ct *TimeMillis) UnmarshalJSON(data []byte) error
UnmarshalJSON decodes unix timestamps in ms into time.Time
type VehiclesResponse ¶
type VehiclesResponse struct {
Vehicles []Vehicle
}
Click to show internal directories.
Click to hide internal directories.