Comments (8)
go get -u github.com/larksuite/oapi-sdk-go/v2
github.com/larksuite/oapi-sdk-go/v2 v2.0.11
给你看看修改的代码:96f23e6 ,其实问题也不难发现,需要细心一些。主要还是因为自定义机器人发送的消息体定义的问题,其他消息类型都是 content 字段, 只有消息卡片是 card 字段
from oapi-sdk-go.
https://github.com/larksuite/oapi-sdk-go/blob/v2_main/sample/customer_bot/customer_bot.go 看看这个示例或源代码(也也比较简单),直接
from oapi-sdk-go.
text类型是可以 消息卡片成功不了
from oapi-sdk-go.
可以继续发挥一下研发的精神,https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN#4996824a ,看看 你的&lark.MessageCard{} 的json 与 文档中的消息卡片有什么出入?
from oapi-sdk-go.
我这边也看看
from oapi-sdk-go.
可以继续发挥一下研发的精神,https://open.feishu.cn/document/ukTMukTMukTM/ucTM5YjL3ETO24yNxkjN#4996824a ,看看 你的&lark.MessageCard{} 的json 与 文档中的消息卡片有什么出入?
https://github.com/larksuite/oapi-sdk-go/blob/v2_main/sample/api/message_model_card.go 卡片内容是复制的这里的
from oapi-sdk-go.
尝试了直接传对象、对象地址、拼装json 都是相同的报错
from oapi-sdk-go.
没有仔细看代码 居家很烦躁。。。
from oapi-sdk-go.
Related Issues (20)
- 创建块的Children长度超限后的错误提示不明确
- 事件响应回写方法不能正确set response header
- 在使用 sdk 发送文本消息使用 larkim.MessageText 生成消息内容时 有一个体验不好的地方
- 云文档-文件夹列表下有一些API接口未实现 HOT 1
- 失败重试
- Export tokenManager
- 任务v2 方法缺失
- 机器人自定义菜单事件,回调时时间戳反序列化失败 HOT 1
- 事件订阅重复 HOT 1
- 找不到包 "github.com/larksuite/oapi-sdk-go/v3/service/corehr/v2" HOT 1
- TextMsgBuilder面对富文本出错
- 在 Gin框架的消息处理器中 如何在路由中进行多应用管理 HOT 1
- Overflow HOT 2
- 希望支持企业人事批量查询部门V2接口
- 希望支持HttpClient传入ctx
- webhook中的请假监听,handler.OnP1LeaveApprovalV4 HOT 1
- tokenmanager.appAccessTokenKey(appID)为固定参数,导致NewClient验证第二次传入的错误appsecret时绕过了服务端请求 HOT 1
- 有 nodejs 版本的 SDK 么?
- Support Obtain user_access_token (Mini Program) API
- 使用新版卡片回调消息格式不匹配,反序列化错误 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from oapi-sdk-go.