商品三十天销量折线图接口
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>商品三十天销量折线图接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>https://api.459n.com/api/v3/products/search_thirty</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>请求头</h5>
<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;">authorization</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>传参时候数据前缀带上 “Bearer 'token'”</td>
</tr>
</tbody>
</table>
<h5>参数</h5>
<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;">goods_id</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">int</td>
<td>商品goods_id</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{
&quot;status&quot;: 1,
&quot;code&quot;: 200,
&quot;msg&quot;: &quot;ok&quot;,
&quot;data&quot;: [
{
&quot;log_date&quot;: &quot;Dec 11&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 12&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 13&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 14&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 15&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 16&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 17&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 18&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 19&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 20&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 21&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 22&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 23&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 24&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 25&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 26&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 27&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 28&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 29&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 30&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Dec 31&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Jan 01&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Jan 02&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Jan 03&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Jan 04&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Jan 05&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Jan 06&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Jan 07&quot;,
&quot;revenue&quot;: 0
},
{
&quot;log_date&quot;: &quot;Jan 08&quot;,
&quot;revenue&quot;: &quot;401.10&quot;
},
{
&quot;log_date&quot;: &quot;Jan 09&quot;,
&quot;revenue&quot;: 0
}
]
}</code></pre>
<h5>返回参数说明</h5>
<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;">status</td>
<td style="text-align: left;">int</td>
<td>成功为 1</td>
</tr>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">int</td>
<td>成功状态码200</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">string</td>
<td>返回数据</td>
</tr>
<tr>
<td style="text-align: left;">data.data['log_date']</td>
<td style="text-align: left;">string</td>
<td>日期</td>
</tr>
<tr>
<td style="text-align: left;">data.data['revenue']</td>
<td style="text-align: left;">string</td>
<td>销量</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>