活动api


协作系统-发送小程序卡片

<h1>发送小程序卡片接口</h1> <h2><strong>请求URL:</strong></h2> <ul> <li> <p>前缀 TEST:<a href="https://guide-api-test.feihe.com">https://guide-api-test.feihe.com</a> UAT:<a href="https://guide-api-uat.feihe.com">https://guide-api-uat.feihe.com</a> PROD:<a href="https://guide-api.feihe.com">https://guide-api.feihe.com</a></p> </li> <li>地址 /wisdom-api/weixin/v1/sendMiniAppCardMessage</li> </ul> <h2><strong>请求方式:</strong></h2> <p>POST</p> <h2><strong>请求头:</strong></h2> <ul> <li>system: NEW_MEMBER</li> </ul> <h2><strong>请求参数:</strong></h2> <pre><code class="language-json">{ &amp;quot;miniProgramAppId&amp;quot;: &amp;quot;wx18428fc8a569a3c7&amp;quot;, &amp;quot;miniProgramPagePath&amp;quot;: &amp;quot;/page/index?a=1&amp;quot;, &amp;quot;thumbMediaId&amp;quot;: &amp;quot;5dGG0vNr1wA2ctUbwU2txGt2tMYsuw2LMCpHi3AoRY3TqsDA1iU_2mGGGZAhvgu4&amp;quot;, &amp;quot;title&amp;quot;: &amp;quot;测试&amp;quot;, &amp;quot;toUser&amp;quot;: &amp;quot;oc63ewmuBYT1PkeC2IEsT0n2gggg&amp;quot; }</code></pre> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">miniProgramAppId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>小程序AppId</td> </tr> <tr> <td style="text-align: left;">miniProgramPagePath</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>卡片跳转路径</td> </tr> <tr> <td style="text-align: left;">thumbMediaId</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>卡片封面媒体id</td> </tr> <tr> <td style="text-align: left;">title</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>卡片标题</td> </tr> <tr> <td style="text-align: left;">toUser</td> <td style="text-align: left;">是</td> <td style="text-align: left;">string</td> <td>用户openId</td> </tr> </tbody> </table> <h2>成功返回结果example</h2> <pre><code>{&amp;quot;msg&amp;quot;:&amp;quot;操作成功&amp;quot;,&amp;quot;code&amp;quot;:200,&amp;quot;data&amp;quot;:null}</code></pre> <h2>失败结果example</h2> <pre><code>{ &amp;quot;code&amp;quot;: 402, &amp;quot;msg&amp;quot;: &amp;quot;不合法的 OpenID ,请开发者确认 OpenID (该用户)是否已关注公众号,或是否是其他公众号的 OpenID&amp;quot;, &amp;quot;data&amp;quot;: { &amp;quot;errcode&amp;quot;: 40003, &amp;quot;errmsg&amp;quot;: &amp;quot;invalid openid rid: 660ce9a1-6a69eebc-66b4caac&amp;quot; } }</code></pre>

页面列表

ITEM_HTML