seat

package
v0.0.0-...-cba36cc Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Brand   = "VW"
	Country = "ES"

	// Authorization ClientID
	AuthClientID = "9dcc70f0-8e79-423a-a3fa-4065d99088b4"
)
View Source
const BaseURL = "https://mal-3a.prd.eu.dp.vwg-connect.com/api"

BaseURL is the API base url

Variables

View Source
var AuthParams = url.Values{
	"response_type": {"code id_token"},
	"client_id":     {"3c8e98bc-3ae9-4277-a563-d5ee65ddebba@apps_vw-dilab_com"},
	"redirect_uri":  {"seatconnect://identity-kit/login"},
	"scope":         {"openid profile"},
}

Authorization parameters

Functions

This section is empty.

Types

type API

type API struct {
	*request.Helper
}

API provides list of vehicles for Seat cars

func NewAPI

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

NewAPI creates a new vehicle

func (*API) Vehicles

func (v *API) Vehicles(userID string) ([]string, error)

Vehicles implements the /vehicles response

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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