获取小程序code
<p><strong>简要描述:</strong></p>
<ul>
<li>获取小程序code</li>
</ul>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://127.0.0.1:8989/api</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>JSON参数:</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">是否必选</th>
<th style="text-align: left;">类型</th>
<th style="text-align: left;">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">type</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td style="text-align: left;">消息类型</td>
</tr>
<tr>
<td style="text-align: left;">app_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td style="text-align: left;">小程序的AppId</td>
</tr>
</tbody>
</table>
<p><strong>发送示例:</strong></p>
<pre><code class="language-json">{
&quot;type&quot;: 41,
&quot;app_id&quot;: &quot;wxaf705dee5xxx&quot;
}</code></pre>
<p><strong>返回示例:</strong></p>
<pre><code class="language-json">{
&quot;data&quot;: {
&quot;code&quot;: &quot;0c3OvP000TBu5Q1B3H300vYpOI1OvP0E&quot;
},
&quot;errmsg&quot;: &quot;OK&quot;,
&quot;errno&quot;: 0
}</code></pre>