Documentation ¶
Index ¶
- Constants
- func CheckCommonError(body []byte) error
- type CommonError
- type Config
- type Request
- func (r *Request) Get(endpoint string, params url.Values) (resp *http.Response, body []byte, err error)
- func (r *Request) Hijack() *http.Client
- func (r *Request) Post(endpoint string, params url.Values, contentType string, bodyReader io.Reader) (resp *http.Response, body []byte, err error)
- func (r *Request) SetToken(tk string)
Constants ¶
View Source
const ( BaseURL = "https://api.weixin.qq.com/" BaseURLBack = "https://api2.weixin.qq.com/" )
View Source
const ( TypeJSON = "json" TypeXML = "xml" TypeUrlencoded = "urlencoded" TypeForm = "form" TypeFormData = "form-data" TypeHTML = "html" TypeText = "text" TypeMultipart = "multipart" )
Types we support.
Variables ¶
This section is empty.
Functions ¶
func CheckCommonError ¶
Types ¶
type CommonError ¶
Click to show internal directories.
Click to hide internal directories.