Documentation ¶
Index ¶
- func HTTPGet(uri string) ([]byte, error)
- func HTTPGet2(uri, accessToken string) ([]byte, error)
- func HTTPPost(uri string, data string) ([]byte, error)
- func PostFile(fieldname, filename, uri string) ([]byte, error)
- func PostJSON(uri string, obj interface{}) ([]byte, error)
- func PostMultipartForm(fields []MultipartFormField, uri string) (respBody []byte, err error)
- type CommonError
- type CommonErrorExtra
- type MemCache
- type MultipartFormField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostMultipartForm ¶
func PostMultipartForm(fields []MultipartFormField, uri string) (respBody []byte, err error)
PostMultipartForm 上传文件或其他多个字段
Types ¶
type CommonError ¶
CommonError 抖音返回的通用错误.
type CommonErrorExtra ¶
CommonErrorExtra 抖音返回的错误额外信息.
type MemCache ¶
type MemCache struct {
// contains filtered or unexported fields
}
MemCache memory cache.
type MultipartFormField ¶
MultipartFormField 保存文件或其他字段信息
Click to show internal directories.
Click to hide internal directories.