获取问卷短链接
<h1>获取问卷短链接</h1>
<h2>介绍</h2>
<p>当需要在问卷链接上组装参数,然后通过自己的短信去发问卷链接,如果需要隐藏一些参数或者是因为过长导致链接失败时,可以将长链接转为短链接。</p>
<h2>接口说明</h2>
<p>请求方式:<code>get</code></p>
<p>请求地址:</p>
<p><code>https://www.wjx.cn/openapi/shortlink.aspx</code></p>
<p>请求参数:</p>
<table>
<thead>
<tr>
<th style="text-align: left;">字段</th>
<th style="text-align: left;">说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">url</td>
<td style="text-align: left;">需要转换的长链接地址,该地址必须是问卷星问卷地址</td>
</tr>
</tbody>
</table>
<p>示例1(未带参数):
<code>https://www.wjx.cn/openapi/shortlink.aspx?url=https://drunkyong.natapp4.cc/vm/w4GZh.aspx</code>
示例1(带入参数):
<code>https://www.wjx.cn/openapi/shortlink.aspx?url=https%3A%2F%2Fdrunkyong.natapp4.cc%2Fvm%2FPJn0P.aspx%3Fsojumpparm%3D234%26parmsign%3Dc8432440b620eb9abd32fa46cf11f19845f5508f</code></p>
<p>提示:url带入的参数需要URLEncode编码。 </p>
<p>返回示例:</p>
<pre><code class="language-json">{
&quot;success&quot;: true,
&quot;msg&quot;: null,
&quot;data&quot;: &quot;https://drunkyong.natapp4.cc/s/jv&quot;
}</code></pre>