| CustomApiSendMiniProgramPage 方法 |
Senparc.Weixin SDK 官方教程《微信开发深度解析》已出版,支持中国开源事业,请【购买正版】!
《微信公众号+小程序》视频课程已经上线,【点击这里】学习!
NeuChar(纽插)已经上线,为开发者提供一站式跨平台管理枢纽,并可将应用入驻到 NeuChar 应用商店!新功能正在不断增加中,快来使用吧! https://www.neuchar.com
在线动态微信接口 Swagger WebApi 文档: https://weixin.senparc.com:8039
发送小程序卡片
命名空间:
Senparc.Weixin.WxOpen.AdvancedAPIs
程序集:
Senparc.Weixin.WxOpen (在 Senparc.Weixin.WxOpen.dll 中) 版本:3.7.101.30232
语法 [ApiBindAttribute(PlatformType.WeChat_MiniProgram, "CustomApi.SendMiniProgramPage",
true)]
public static WxJsonResult SendMiniProgramPage(
string accessTokenOrAppId,
string openId,
string title,
string pagePath,
string thumbMediaId,
int timeOut = 10000
)
<ApiBindAttribute(PlatformType.WeChat_MiniProgram, "CustomApi.SendMiniProgramPage",
true)>
Public Shared Function SendMiniProgramPage (
accessTokenOrAppId As String,
openId As String,
title As String,
pagePath As String,
thumbMediaId As String,
Optional timeOut As Integer = 10000
) As WxJsonResult
参数
- accessTokenOrAppId
- 类型:SystemString
AccessToken或AppId(推荐使用AppId,需要先注册) - openId
- 类型:SystemString
普通用户(openid) - title
- 类型:SystemString
消息标题 - pagePath
- 类型:SystemString
小程序的页面路径,跟app.json对齐,支持参数,比如pages/index/index?foo=bar - thumbMediaId
- 类型:SystemString
小程序消息卡片的封面, image类型的media_id,通过新增素材接口上传图片文件获得,建议大小为520*416 - timeOut (Optional)
- 类型:SystemInt32
返回值
类型:
WxJsonResult参见