Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Config(secret, accessToken string) *Client
- func (c *Client) ConfigSLogClientFun(sLogFun golog.SLogFun)
- func (c *Client) DefaultHttp()
- func (c *Client) Get(ctx context.Context, _method string, notMustParams ...gorequest.Params) ([]byte, error)
- func (c *Client) GetAccessToken() string
- func (c *Client) GetSecret() string
- func (c *Client) Post(ctx context.Context, _method string, notMustParams ...gorequest.Params) ([]byte, error)
- func (c *Client) RobotSend(ctx context.Context, notMustParams ...gorequest.Params) (*RobotSendResult, error)
- func (c *Client) SetHttp(app *gorequest.App)
- type ClientConfig
- type RobotSendResponse
- type RobotSendResult
Constants ¶
View Source
const (
LogTable = "dingtalk"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v1.0.47
type Client struct {
// contains filtered or unexported fields
}
Client 实例
func NewClient ¶ added in v1.0.47
func NewClient(config *ClientConfig) (*Client, error)
NewClient 创建实例化
func (*Client) ConfigSLogClientFun ¶ added in v1.0.162
ConfigSLogClientFun 日志配置
func (*Client) GetAccessToken ¶ added in v1.0.52
func (*Client) RobotSend ¶ added in v1.0.47
func (c *Client) RobotSend(ctx context.Context, notMustParams ...gorequest.Params) (*RobotSendResult, error)
RobotSend 自定义机器人 https://open.dingtalk.com/document/group/custom-robot-access
type ClientConfig ¶ added in v1.0.52
ClientConfig 实例配置
type RobotSendResponse ¶ added in v1.0.44
type RobotSendResult ¶ added in v1.0.44
type RobotSendResult struct { Result RobotSendResponse // 结果 Body []byte // 内容 Http gorequest.Response // 请求 }
Click to show internal directories.
Click to hide internal directories.