first push
This commit is contained in:
parent
9071be2e14
commit
ca74ab6f86
2
msg.go
2
msg.go
|
@ -43,7 +43,7 @@ func (m *MessageCenter) getAccessToken() (string, error) {
|
||||||
var data accessTokenResponse
|
var data accessTokenResponse
|
||||||
url := fmt.Sprintf("%s%s", m.Host, PathAccessToken)
|
url := fmt.Sprintf("%s%s", m.Host, PathAccessToken)
|
||||||
var authParam, _ = json.Marshal(map[string]string{"client_key": m.ClientKey, "client_secret": m.ClientSecret})
|
var authParam, _ = json.Marshal(map[string]string{"client_key": m.ClientKey, "client_secret": m.ClientSecret})
|
||||||
res, err := httpclient.FastHttpPost(url, map[string]string{"content-type": "application/json; charset=utf-8"}, authParam, TimeOut)
|
res, err := httpclient.FastHttpPost(url, m.header, authParam, TimeOut)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue