etron

package
v0.0.0-...-da4a797 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const AZSConfig = "myaudi"
View Source
const ApiURI = "https://app-api.live-my.audi.com/vgql/v1/graphql"

Variables

View Source
var AuthParams = url.Values{
	"response_type": {"code id_token token"},
	"client_id":     {"f4d0934f-32bf-4ce4-b3c4-699a7049ad26@apps_vw-dilab_com"},
	"redirect_uri":  {"myaudi:///"},
	"scope":         {"openid profile mbb"},
	"prompt":        {"login"},
	"ui_locales":    {"de-DE"},
}

Authorization parameters

View Source
var IDKParams = url.Values{
	"client_id":    {"f4d0934f-32bf-4ce4-b3c4-699a7049ad26@apps_vw-dilab_com"},
	"redirect_uri": {"myaudi:///"},
}

Functions

This section is empty.

Types

type API

type API struct {
	// contains filtered or unexported fields
}

API is the VW api client

func NewAPI

func NewAPI(log *util.Logger, ts oauth2.TokenSource) *API

NewAPI creates a new api client

func (*API) Vehicles

func (v *API) Vehicles(ctx context.Context) ([]Vehicle, error)

Vehicles implements the /vehicles response

type Vehicle

type Vehicle struct {
	VIN, Type, Nickname string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL