mbb

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseURL  = "https://mbboauth-1d.prd.ece.vwg-connect.com"
	TokenURL = BaseURL + "/mbbcoauth/mobile/oauth2/v1/token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	*request.Helper
	// contains filtered or unexported fields
}

func New

func New(log *util.Logger, clientID string) *Service

func (*Service) Exchange

func (v *Service) Exchange(q url.Values) (*vag.Token, error)

func (*Service) Refresh

func (v *Service) Refresh(token *vag.Token) (*vag.Token, error)

func (*Service) TokenSource

func (v *Service) TokenSource(token *vag.Token) vag.TokenSource

TokenSource creates token source. Token is refreshed automatically.

Jump to

Keyboard shortcuts

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