-
Notifications
You must be signed in to change notification settings - Fork 0
/
region.go
35 lines (30 loc) · 880 Bytes
/
region.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package mercedes
type Region int
const (
RegionChina Region = iota
)
var (
RegionProviderChina = RegionProvider{
ConfigURL: "https://bff.cn-prod.mobilesdk.mercedes-benz.com/v1/config",
LoginURL: "https://bff.cn-prod.mobilesdk.mercedes-benz.com/v1/login",
WebSocketURL: "wss://websocket.cn-prod.mobilesdk.mercedes-benz.com/v2/ws",
OAuth2URL: "https://ciam-1.mercedes-benz.com.cn/as/token.oauth2",
ResetURL: "https://bff.cn-prod.mobilesdk.mercedes-benz.com",
XLocal: "zh-CN",
CountryCode: "CN",
ClientId: "3f36efb1-f84b-4402-b5a2-68a118fec33e",
}
RegionProviders = map[Region]RegionProvider{
RegionChina: RegionProviderChina,
}
)
type RegionProvider struct {
ConfigURL string
LoginURL string
WebSocketURL string
OAuth2URL string
XLocal string
CountryCode string
ClientId string
ResetURL string
}