dingtalk

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateChat

func CreateChat(name, owner string, userIDList []string) (string, error)

CreateChat 创建会话 https://developers.dingtalk.com/document/app/create-group-session

func InitDingtalk added in v1.3.4

func InitDingtalk()

InitDingtalk 钉钉初始化

func MediaUpload

func MediaUpload(mediaName, mediaType string, mediaFile multipart.File) (string, error)

MediaUpload 上传图片, 语音, 文件 https://developers.dingtalk.com/document/app/upload-media-files

func RefreshAccessToken

func RefreshAccessToken() (int, error)

RefreshAccessToken 获取 AccessToken https://open.dingtalk.com/document/orgapp-server/obtain-orgapp-token

func SendChatMessage

func SendChatMessage(chatID string, msg map[string]interface{}) (string, error)

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.

Jump to

Keyboard shortcuts

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