dingtalk

package
v1.0.209 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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) Config added in v1.0.52

func (c *Client) Config(secret, accessToken string) *Client

func (*Client) ConfigSLogClientFun added in v1.0.162

func (c *Client) ConfigSLogClientFun(sLogFun golog.SLogFun)

ConfigSLogClientFun 日志配置

func (*Client) DefaultHttp added in v1.0.177

func (c *Client) DefaultHttp()

DefaultHttp 默认请求

func (*Client) Get added in v1.0.109

func (c *Client) Get(ctx context.Context, _method string, notMustParams ...gorequest.Params) ([]byte, error)

func (*Client) GetAccessToken added in v1.0.52

func (c *Client) GetAccessToken() string

func (*Client) GetSecret added in v1.0.52

func (c *Client) GetSecret() string

func (*Client) Post added in v1.0.109

func (c *Client) Post(ctx context.Context, _method string, notMustParams ...gorequest.Params) ([]byte, error)

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

func (*Client) SetHttp added in v1.0.177

func (c *Client) SetHttp(app *gorequest.App)

SetHttp 配置请求

type ClientConfig added in v1.0.52

type ClientConfig struct {
	Secret      string
	AccessToken string
}

ClientConfig 实例配置

type RobotSendResponse added in v1.0.44

type RobotSendResponse struct {
	Errcode int64  `json:"errcode"`
	Errmsg  string `json:"errmsg"`
}

type RobotSendResult added in v1.0.44

type RobotSendResult struct {
	Result RobotSendResponse  // 结果
	Body   []byte             // 内容
	Http   gorequest.Response // 请求
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL