获取淘宝授权链接
<h4>接口说明</h4>
<hr />
<p><strong>简要描述:</strong> </p>
<ul>
<li>获取授权链接,重定向的时候会在url里面带有code参数,后续需要把此参数传给授权接口</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>http://domain/fy/user/getTaobaoAuthUrl</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST
• header Content-Type: application/x-www-form-urlencoded</li>
</ul>
<p><strong>请求参数:</strong> </p>
<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;">view</td>
<td style="text-align: left;">否</td>
<td style="text-align: left;">String</td>
<td>web对应PC端(淘宝logo)浏览器页面样式;tmall对应天猫的浏览器页面样式;wap对应无线端的浏览器页面样式。默认wap</td>
</tr>
<tr>
<td style="text-align: left;">userId</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">String</td>
<td>用户userId</td>
</tr>
</tbody>
</table>
<p><strong>请求示例</strong></p>
<pre><code> { "userId":"3"}</code></pre>
<p><strong>返回示例</strong></p>
<pre><code> {"result":"success","resultData":{"authUrl":"https://oauth.taobao.com/authorize?response_type=code&client_id=28124691&redirect_uri=http://test.520daikuan.com/ww.html&state=3&view=tmall"},"resultCode":0,"resultMsg":"成功"}</code></pre>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">resultCode</td>
<td style="text-align: left;">Integer</td>
<td>结果码</td>
</tr>
<tr>
<td style="text-align: left;">resultMsg</td>
<td style="text-align: left;">String</td>
<td>描述信息</td>
</tr>
<tr>
<td style="text-align: left;">resultData</td>
<td style="text-align: left;">String</td>
<td>返回数据</td>
</tr>
</tbody>
</table>
<p><strong>resultData参数说明</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">authUrl</td>
<td style="text-align: left;">String</td>
<td>授权链接</td>
</tr>
</tbody>
</table>