Versions in this module Expand all Collapse all v2 v2.0.3 Jul 8, 2020 v2.0.2 Jul 8, 2020 Changes in this version + const SignTypeHMACSHA256 + const SignTypeMD5 + func AESDecryptMsg(ciphertext []byte, aesKey []byte) (random, rawXMLMsg, appID []byte, err error) + func AESEncryptMsg(random, rawXMLMsg []byte, appID string, aesKey []byte) (ciphertext []byte) + func CalculateSign(content, signType, key string) (string, error) + func DecodeWithCommonError(response []byte, apiName string) (err error) + func DecodeWithError(response []byte, obj interface{}, apiName string) error + func DecryptMsg(appID, encryptedMsg, aesKey string) (random, rawMsgXMLBytes []byte, err error) + func EncryptMsg(random, rawXMLMsg []byte, appID, aesKey string) (encrtptMsg []byte, err error) + func GetCurrTS() int64 + func HTTPGet(uri string) ([]byte, error) + func HTTPPost(uri string, data string) ([]byte, error) + func OrderParam(p map[string]string, bizKey string) (returnStr string) + func ParamSign(p map[string]string, key string) (string, error) + func PostFile(fieldname, filename, uri string) ([]byte, error) + func PostJSON(uri string, obj interface{}) ([]byte, error) + func PostJSONWithRespContentType(uri string, obj interface{}) ([]byte, string, error) + func PostMultipartForm(fields []MultipartFormField, uri string) (respBody []byte, err error) + func PostXML(uri string, obj interface{}) ([]byte, error) + func PostXMLWithTLS(uri string, obj interface{}, ca, key string) ([]byte, error) + func RandomStr(length int) string + func Signature(params ...string) string + type CommonError struct + ErrCode int64 + ErrMsg string + type MultipartFormField struct + Fieldname string + Filename string + IsFile bool + Value []byte Other modules containing this package github.com/JaxSONG/wechat