Changed const naming convention assoc. with common.go

This commit is contained in:
Ryan O'Hara-Reid
2017-07-22 09:55:53 +10:00
committed by Adrian Gallagher
parent c4e09fad08
commit 00d2024e5a
19 changed files with 54 additions and 36 deletions

View File

@@ -266,7 +266,7 @@ func (i *ItBit) SendAuthenticatedHTTPRequest(method string, path string, params
}
hash := common.GetSHA256([]byte(nonceStr + string(message)))
hmac := common.GetHMAC(common.HASH_SHA512, []byte(url+string(hash)), []byte(i.APISecret))
hmac := common.GetHMAC(common.HashSHA512, []byte(url+string(hash)), []byte(i.APISecret))
signature := common.Base64Encode(hmac)
headers := make(map[string]string)