Giter Site home page Giter Site logo

chzealot / dingtalk-stream-sdk-go Goto Github PK

View Code? Open in Web Editor NEW

This project forked from open-dingtalk/dingtalk-stream-sdk-go

0.0 0.0 0.0 36 KB

Go SDK for DingTalk Stream Mode API, Compared with the webhook mode, it is easier to access the DingTalk chatbot

License: MIT License

Go 98.87% Makefile 1.13%

dingtalk-stream-sdk-go's Introduction

DingTalk Stream Mode 介绍

Go SDK for DingTalk Stream Mode API, Compared with the webhook mode, it is easier to access the DingTalk chatbot

钉钉支持 Stream 模式接入事件推送、机器人收消息以及卡片回调,该 SDK 实现了 Stream 模式。相比 Webhook 模式,Stream 模式可以更简单的接入各类事件和回调。

快速开始

准备工作

快速开始指南

1、创建企业内部应用

进入钉钉开发者后台,创建企业内部应用,获取ClientID(即 AppKey)和ClientSecret( 即AppSecret)。

发布应用:在开发者后台左侧导航中,点击“版本管理与发布”,点击“确认发布”,并在接下来的可见范围设置中,选择“全部员工”,或者按需选择部分员工。

2、Stream 模式的机器人(可选)

如果不需要使用机器人功能的话,可以不用创建。

在应用管理的左侧导航中,选择“消息推送”,打开机器人能力,设置机器人基本信息。

注意:消息接收模式中,选择 “Stream 模式”

Stream 模式

点击“点击调试”按钮,可以创建测试群进行测试。

3、启动应用

修改参数,启动应用

go run example/*.go -client_id "your-client-id" -client_secret "your-client-secret"

测试效果: calcbot

事件订阅切换到 Stream 模式(可选)

进入钉钉开发者后台,选择企业内部应用,在应用管理的左侧导航中,选择“事件与回调”。 “订阅管理”中,“推送方式”选项中,选择 “Stream 模式”,并保存

技术支持

可以搜索共创群,答疑交流。共创群ID:35365014813 (钉钉搜索群号入群);

也可以扫码入群:

扫码入群

dingtalk-stream-sdk-go's People

Contributors

chzealot avatar hzjiangjian avatar yell-li avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.