Documentation ¶
Index ¶
Constants ¶
View Source
const ( ApiURI = "https://pc-api.polestar.com/eu-north-1" ApiURIv2 = ApiURI + "/mystar-v2" )
View Source
const ( OAuthURI = "https://polestarid.eu.polestar.com" ClientID = "l3oopkc_10" RedirectURI = "https://www.polestar.com/sign-in-callback" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatteryData ¶
type ConsumerCar ¶
type EventUpdatedTimestamp ¶
type Identity ¶
func NewIdentity ¶
NewIdentity creates Polestar identity
func (*Identity) TokenSource ¶
func (v *Identity) TokenSource() oauth2.TokenSource
TokenSource implements oauth.TokenSource
type OdometerData ¶
type OdometerData struct { OdometerMeters float64 EventUpdatedTimestamp EventUpdatedTimestamp }
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func (*Provider) FinishTime ¶
FinishTime implements the api.VehicleFinishTimer interface
Click to show internal directories.
Click to hide internal directories.