协作系统-发送小程序卡片
<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">{
&quot;miniProgramAppId&quot;: &quot;wx18428fc8a569a3c7&quot;,
&quot;miniProgramPagePath&quot;: &quot;/page/index?a=1&quot;,
&quot;thumbMediaId&quot;: &quot;5dGG0vNr1wA2ctUbwU2txGt2tMYsuw2LMCpHi3AoRY3TqsDA1iU_2mGGGZAhvgu4&quot;,
&quot;title&quot;: &quot;测试&quot;,
&quot;toUser&quot;: &quot;oc63ewmuBYT1PkeC2IEsT0n2gggg&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>{&quot;msg&quot;:&quot;操作成功&quot;,&quot;code&quot;:200,&quot;data&quot;:null}</code></pre>
<h2>失败结果example</h2>
<pre><code>{
&quot;code&quot;: 402,
&quot;msg&quot;: &quot;不合法的 OpenID ,请开发者确认 OpenID (该用户)是否已关注公众号,或是否是其他公众号的 OpenID&quot;,
&quot;data&quot;: {
&quot;errcode&quot;: 40003,
&quot;errmsg&quot;: &quot;invalid openid rid: 660ce9a1-6a69eebc-66b4caac&quot;
}
}</code></pre>