Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) RobotSend(ctx context.Context, accessToken string, notMustParams ...*gorequest.Params) (*RobotSendResult, error)
- func (c *Client) RobotSendSign(ctx context.Context, accessToken string, secret string, ...) (*RobotSendResult, error)
- func (c *Client) RobotSendSignURL(ctx context.Context, url string, secret string, ...) (*RobotSendResult, error)
- func (c *Client) RobotSendURL(ctx context.Context, url string, notMustParams ...*gorequest.Params) (*RobotSendResult, error)
- func (c *Client) SetClientIP(clientIP string) *Client
- func (c *Client) SetLogFun(logFun gorequest.LogFunc)
- type RobotSendResponse
- type RobotSendResult
Constants ¶
View Source
const (
LogTable = "dingtalk"
)
View Source
const (
Version = "1.0.28"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client 实例
func (*Client) RobotSend ¶
func (c *Client) RobotSend(ctx context.Context, accessToken string, notMustParams ...*gorequest.Params) (*RobotSendResult, error)
RobotSend 发送消息 https://open.dingtalk.com/document/group/custom-robot-access
func (*Client) RobotSendSign ¶
func (c *Client) RobotSendSign(ctx context.Context, accessToken string, secret string, notMustParams ...*gorequest.Params) (*RobotSendResult, error)
RobotSendSign 发送消息签名版 https://open.dingtalk.com/document/group/custom-robot-access
func (*Client) RobotSendSignURL ¶ added in v1.0.25
func (c *Client) RobotSendSignURL(ctx context.Context, url string, secret string, notMustParams ...*gorequest.Params) (*RobotSendResult, error)
RobotSendSignURL 发送消息签名版 https://open.dingtalk.com/document/group/custom-robot-access
func (*Client) RobotSendURL ¶ added in v1.0.25
func (c *Client) RobotSendURL(ctx context.Context, url string, notMustParams ...*gorequest.Params) (*RobotSendResult, error)
RobotSendURL 发送消息 https://open.dingtalk.com/document/group/custom-robot-access
type RobotSendResponse ¶
type RobotSendResult ¶
type RobotSendResult struct { Result RobotSendResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 }
Click to show internal directories.
Click to hide internal directories.