BMW/Mini: fix user agent (#3524)

New User-Agent required.
This commit is contained in:
tmeidinger 2022-05-28 12:49:37 +02:00 • committed by GitHub
parent 968d0672c6
commit 7c2a651728
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ type API struct {
func NewAPI(log *util.Logger, brand string, identity oauth2.TokenSource) *API {
v := &API{
Helper: request.NewHelper(log),
xUserAgent: fmt.Sprintf("android(v1.07_20200330);%s;1.7.0(11152)", brand),
xUserAgent: fmt.Sprintf("android(SP1A.210812.016.C1);%s;2.5.2(14945)", brand),
}
// replace client transport with authenticated transport