Documentation ¶
Index ¶
- Variables
- func CallRet(ctx context.Context, ret interface{}, resp *http.Response) (err error)
- func ResponseError(resp *http.Response) (err error)
- func TurnOnDebug()
- type Client
- func (r Client) Call(ctx context.Context, ret interface{}, method, reqUrl string, ...) (err error)
- func (r Client) CallWith(ctx context.Context, ret interface{}, method, reqUrl string, ...) (err error)
- func (r Client) CallWith64(ctx context.Context, ret interface{}, method, reqUrl string, ...) (err error)
- func (r Client) CallWithForm(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) CredentialedCall(ctx context.Context, cred *auth.Credentials, tokenType auth.TokenType, ...) error
- func (r Client) CredentialedCallWith(ctx context.Context, cred *auth.Credentials, tokenType auth.TokenType, ...) error
- func (r Client) CredentialedCallWith64(ctx context.Context, cred *auth.Credentials, tokenType auth.TokenType, ...) error
- func (r Client) CredentialedCallWithForm(ctx context.Context, cred *auth.Credentials, tokenType auth.TokenType, ...) error
- func (r Client) CredentialedCallWithJson(ctx context.Context, cred *auth.Credentials, tokenType auth.TokenType, ...) error
- func (r Client) Do(ctx context.Context, req *http.Request) (resp *http.Response, err error)
- func (r Client) DoRequest(ctx context.Context, method, reqUrl string, headers http.Header) (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) DoRequestWithForm(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
Constants ¶
This section is empty.
Variables ¶
View Source
var DebugMode = false
用来打印调试信息
View Source
var DeepDebugInfo = false
View Source
var DefaultClient = Client{&http.Client{Transport: http.DefaultTransport}}
View Source
var UserAgent = "Golang douyin/client package"
Functions ¶
func ResponseError ¶
Types ¶
type Client ¶
Client 负责发送HTTP请求到抖音接口服务器
func (Client) CallWith64 ¶
func (Client) CallWithForm ¶
func (Client) CallWithJson ¶
func (Client) CredentialedCall ¶
func (Client) CredentialedCallWith ¶
func (Client) CredentialedCallWith64 ¶
func (Client) CredentialedCallWithForm ¶
func (Client) CredentialedCallWithJson ¶
func (Client) DoRequestWith ¶
func (Client) DoRequestWith64 ¶
func (Client) DoRequestWithForm ¶
Click to show internal directories.
Click to hide internal directories.