Versions in this module Expand all Collapse all v1 v1.0.8 May 19, 2023 v1.0.7 May 19, 2023 Changes in this version + var DebugMode = false + var DeepDebugInfo = false + var DefaultClient = Client + var UserAgent = "Golang douyin/client package" + func CallRet(ctx context.Context, ret interface{}, resp *http.Response) (err error) + func ResponseError(resp *http.Response) error + func TurnOnDebug() + type Client struct + func (r Client) CallWith64(ctx context.Context, ret interface{}, method, reqUrl string, ...) (err error) + func (r Client) CallWithJson(ctx context.Context, ret interface{}, method, reqUrl string, ...) (err error) + func (r Client) Do(ctx context.Context, req *http.Request) (resp *http.Response, err error) + func (r Client) DoRequestWith(ctx context.Context, method, reqUrl string, headers http.Header, ...) (resp *http.Response, err error) + func (r Client) DoRequestWith64(ctx context.Context, method, reqUrl string, headers http.Header, ...) (resp *http.Response, err error) + func (r Client) DoRequestWithJson(ctx context.Context, method, reqUrl string, headers http.Header, ...) (resp *http.Response, err error) + type ErrorInfo struct + Code int + Err string + Errno int + Key string + Reqid string + func (r *ErrorInfo) Error() string