我一般都是通过API实现
POST /v1.0/card/instances HTTP/1.1
Host:api.dingtalk.com
x-acs-dingtalk-access-token:String
Content-Type:application/json
{
"userId" : "String",
"cardTemplateId" : "String",
"outTrackId" : "String",
"callbackType" : "String",
"callbackRouteKey" : "String",
"cardData" : {
"cardParamMap" : {
"key" : "String"
}
},
"privateData" : {
"key" : {
"cardParamMap" : {
"key" : "String"
}
}
},
"openDynamicDataConfig" : {
"dynamicDataSourceConfigs" : [ {
"dynamicDataSourceId" : "String",
"constParams" : {
"key" : "String"
},
"pullConfig" : {
"pullStrategy" : "String",
"interval" : Integer,
"timeUnit" : "String"
}
} ]
},
"imGroupOpenSpaceModel" : {
"supportForward" : Boolean,
"lastMessageI18n" : {
"key" : "String"
},
"searchSupport" : {
"searchIcon" : "String",
"searchTypeName" : "String",
"searchDesc" : "String"
},
"notification" : {
"alertContent" : "String",
"notificationOff" : Boolean
}
},
"imRobotOpenSpaceModel" : {
"supportForward" : Boolean,
"lastMessageI18n" : {
"key" : "String"
},
"searchSupport" : {
"searchIcon" : "String",
"searchTypeName" : "String",
"searchDesc" : "String"
},
"notification" : {
"alertContent" : "String",
"notificationOff" : Boolean
}
},
"coFeedOpenSpaceModel" : {
"title" : "String"
},
"topOpenSpaceModel" : {
"spaceType" : "String"
},
"userIdType" : Integer
}
具体API的使用请参考
https://open.dingtalk.com/document/isvapp/interface-for-creating-a-card-instance
您好,要在钉钉中实现卡片功能,主要是通过开通钉钉的专业版或专属版来获得。以下是开通步骤:1. 访问管理后台 oa.dingtalk.com。2. 进入【企业设置】。3. 选择【搜索】选项。4. 点击【了解详情】。5. 最后,选择【预约咨询/立即开通】来完成购买流程。请注意,开通钉钉专业版会赠送3个搜索卡片,专属版则赠送5个。发布后,企业成员无论是在PC端还是移动端,都可以在钉钉消息界面上方的搜索框享受搜索卡片带来的便利。请参考图片:
。此回答整理来自钉群“钉钉开发者社区(互助群)”。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。