Documentation ¶
Index ¶
Constants ¶
View Source
const ( ApiURI = "https://pc-api.polestar.com/eu-north-1" ApiURIv1 = ApiURI + "/my-star" ApiURIv2 = ApiURI + "/mystar-v2" )
View Source
const OAuthURI = "https://polestarid.eu.polestar.com"
Variables ¶
View Source
var OAuth2Config = &oauth2.Config{ ClientID: "l3oopkc_10", RedirectURL: "https://www.polestar.com/sign-in-callback", Endpoint: oauth2.Endpoint{ AuthURL: OAuthURI + "/as/authorization.oauth2", TokenURL: OAuthURI + "/as/token.oauth2", }, Scopes: []string{ "openid", "profile", "email", "customer:attributes", }, }
https://polestarid.eu.polestar.com/.well-known/openid-configuration
Functions ¶
func NewIdentity ¶
NewIdentity creates Polestar identity
Types ¶
type BatteryData ¶
type ConsumerCar ¶
type EventUpdatedTimestamp ¶
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.