Documentation ¶
Index ¶
- func NewClient(appKey *string, appSecret *string, clientType *string) (*client, error)
- func NewRobotWebHookClient(appSecret *string, accessToken *string) (*client, error)
- type DingDingAt
- type DingDingMessageBase
- type GetAccessTokenResponseBody
- type GetRobotAccessTokenResponseBody
- type GetSsoUserInfoResponseBody
- type MessagCorpconversationAsyncsendV2RequestBody
- type MessagCorpconversationAsyncsendV2ResponseBody
- type Msg
- type MsgActionCard
- type MsgBody
- type MsgBtnJsonList
- type MsgFile
- type MsgForm
- type MsgHead
- type MsgImage
- type MsgLink
- type MsgMarkdown
- type MsgOa
- type MsgRich
- type MsgStatusBar
- type MsgText
- type MsgVoice
- type RobotMsg
- type RobotOToMessagesBatchSendExceptionResponseBody
- type RobotOToMessagesBatchSendRequestBody
- type RobotOToMessagesBatchSendResponseBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRobotWebHookClient ¶
NewRobotWebHookClient webhook客户端
Types ¶
type DingDingAt ¶
type DingDingMessageBase ¶
type DingDingMessageBase struct { At DingDingAt `json:"at"` Msgtype string `json:"msgtype"` }
type GetSsoUserInfoResponseBody ¶
type GetSsoUserInfoResponseBody struct { // 用户头像链接 Avatar *string `json:"avatar,omitempty" xml:"avatar,omitempty"` // 微应用免登用户所在企业id CorpId *string `json:"corpId,omitempty" xml:"corpId,omitempty"` // 微应用免登用户所在企业名称 CorpName *string `json:"corpName,omitempty" xml:"corpName,omitempty"` // 用户邮箱 Email *string `json:"email,omitempty" xml:"email,omitempty"` // 是否为企业管理员 IsAdmin *bool `json:"isAdmin,omitempty" xml:"isAdmin,omitempty"` // 用户id UserId *string `json:"userId,omitempty" xml:"userId,omitempty"` // 用户名称 UserName *string `json:"userName,omitempty" xml:"userName,omitempty"` }
type Msg ¶
type Msg struct { Voice *MsgVoice `json:"voice,omitempty"` Image *MsgImage `json:"image,omitempty"` Oa *MsgOa `json:"oa,omitempty"` File *MsgFile `json:"file,omitempty"` ActionCard *MsgActionCard `json:"action_card,omitempty"` Link *MsgLink `json:"link,omitempty"` Markdown *MsgMarkdown `json:"markdown,omitempty"` Text *MsgText `json:"text,omitempty"` Msgtype string `json:"msgtype,omitempty"` }
type MsgActionCard ¶
type MsgActionCard struct { BtnJsonList *MsgBtnJsonList `json:"btn_json_list,omitempty"` SingleUrl string `json:"single_url,omitempty"` BtnOrientation string `json:"btn_orientation,omitempty"` SingleTitle string `json:"single_title,omitempty"` Markdown string `json:"markdown,omitempty"` Title string `json:"title,omitempty"` }
type MsgBody ¶
type MsgBody struct { FileCount string `json:"file_count,omitempty"` Image string `json:"image,omitempty"` Form *MsgForm `json:"form,omitempty"` Author string `json:"author,omitempty"` Rich *MsgRich `json:"rich,omitempty"` Title string `json:"title,omitempty"` Content string `json:"content,omitempty"` }
type MsgBtnJsonList ¶
type MsgMarkdown ¶
type MsgOa ¶
type MsgOa struct { Head *MsgHead `json:"head,omitempty"` PcMessageUrl string `json:"pc_message_url,omitempty"` StatusBar *MsgStatusBar `json:"status_bar,omitempty"` Body *MsgBody `json:"body,omitempty"` MessageUrl string `json:"message_url,omitempty"` }
type MsgStatusBar ¶
type RobotMsg ¶
type RobotMsg struct { DingDingMessageBase Voice *MsgVoice `json:"voice,omitempty"` Image *MsgImage `json:"image,omitempty"` Oa *MsgOa `json:"oa,omitempty"` File *MsgFile `json:"file,omitempty"` ActionCard *MsgActionCard `json:"action_card,omitempty"` Link *MsgLink `json:"link,omitempty"` Markdown *MsgMarkdown `json:"markdown,omitempty"` Text *MsgText `json:"text,omitempty"` }
type RobotOToMessagesBatchSendRequestBody ¶
type RobotOToMessagesBatchSendRequestBody struct { // 机器人的编码 RobotCode *string `json:"robotCode"` // 用户的userid,每次最多传20个 UserIds []*string `json:"userIds"` // 消息的msgKey,参考消息类型和数据格式 @https://open.dingtalk.com/document/group/message-types-and-data-format MsgKey *string `json:"msgKey"` // 消息体,参考消息类型和数据格式 @https://open.dingtalk.com/document/group/message-types-and-data-format MsgParam *string `json:"msgParam"` }
RobotOToMessagesBatchSendRequestBody 接口方式发送机器人request body
type RobotOToMessagesBatchSendResponseBody ¶
type RobotOToMessagesBatchSendResponseBody struct { //消息id ProcessQueryKey *string `json:"processQueryKey"` //无效的用户userid列表。 InvalidStaffIdList []*string `json:"invalidStaffIdList"` //被限流的userid列表 FlowControlledStaffIdList []*string `json:"flowControlledStaffIdList"` }
RobotOToMessagesBatchSendResponseBody 接口方式发送机器人response body
Click to show internal directories.
Click to hide internal directories.