We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c306b6b commit 08a2476Copy full SHA for 08a2476
rest.go
@@ -10,6 +10,8 @@ import (
10
const (
11
SimKeyHeader = "X-SIM-KEY"
12
SimPasswordHeader = "X-SIM-PASSWORD"
13
+ SimVersionHeader = "X-SIM-VERSION"
14
+ SimPlatformHeader = "X-SIM-PLATFORM"
15
BaseUrl = "https://api.simpay.pl"
16
ContentType = "application/json"
17
)
@@ -61,5 +63,7 @@ type interceptor struct {
61
63
func (i interceptor) RoundTrip(r *http.Request) (*http.Response, error) {
62
64
r.Header.Set(SimKeyHeader, i.apikey)
65
r.Header.Set(SimPasswordHeader, i.simKey)
66
+ r.Header.Set(SimVersionHeader, "2.1.1")
67
+ r.Header.Set(SimPlatformHeader, "GO")
68
return i.core.RoundTrip(r)
69
}
0 commit comments