Documentation ¶
Index ¶
- func CreateChat(name, owner string, userIDList []string) (string, error)
- func InitDingtalk()
- func MediaUpload(mediaName, mediaType string, mediaFile multipart.File) (string, error)
- func RefreshAccessToken() (int, error)
- func SendChatMessage(chatID string, msg map[string]interface{}) (string, error)
- func SendTopAPIMessage(userIDList, deptIDList string, toAll bool, msg map[string]interface{}) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateChat ¶
CreateChat 创建会话 https://developers.dingtalk.com/document/app/create-group-session
func MediaUpload ¶
MediaUpload 上传图片, 语音, 文件 https://developers.dingtalk.com/document/app/upload-media-files
func RefreshAccessToken ¶
RefreshAccessToken 获取 AccessToken https://open.dingtalk.com/document/orgapp-server/obtain-orgapp-token
func SendChatMessage ¶
SendChatMessage 发送消息到企业群 https://developers.dingtalk.com/document/app/send-group-messages
func SendTopAPIMessage ¶
func SendTopAPIMessage(userIDList, deptIDList string, toAll bool, msg map[string]interface{}) (int, error)
SendTopAPIMessage 发送工作通知消息 https://developers.dingtalk.com/document/app/asynchronous-sending-of-enterprise-session-messages
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.