27 lines
558 B
Go
27 lines
558 B
Go
|
package alert
|
||
|
|
||
|
import (
|
||
|
"git.dev.m-and-m.ovh/mderasse/tesla/api"
|
||
|
)
|
||
|
|
||
|
// PriceAlert contain the minimum price that will trigger an alert.
|
||
|
var PriceAlert int64 = 47000
|
||
|
|
||
|
var carFilter api.AvailabilityQueryParams = api.AvailabilityQueryParams{
|
||
|
Model: "my",
|
||
|
Condition: "new",
|
||
|
Options: api.OptionsParams{
|
||
|
Trim: []string{"LRAWD"},
|
||
|
},
|
||
|
Arrangeby: "Price",
|
||
|
Order: "asc",
|
||
|
Market: "FR",
|
||
|
Language: "fr",
|
||
|
SuperRegion: "north america",
|
||
|
Lng: 3.0511,
|
||
|
Lat: 50.624,
|
||
|
Zip: "59100",
|
||
|
Range: 0,
|
||
|
Region: "FR",
|
||
|
}
|