Documentation ¶
Index ¶
- func HTTPGet(uri string) ([]byte, 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)
- type CommonError
- type MultipartFormField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostJSONWithRespContentType ¶
PostJSONWithRespContentType post json数据请求,且返回数据类型
func PostMultipartForm ¶
func PostMultipartForm(fields []MultipartFormField, uri string) (respBody []byte, err error)
PostMultipartForm 上传文件或其他多个字段
Types ¶
type CommonError ¶
CommonError 企业微信返回的通用错误json
Click to show internal directories.
Click to hide internal directories.