生意参数转换接口,生参数据转换apiv兔电商工具

功能1.数据转化,生意参谋原始指数数据转化成真实有效交易数据,有意向请咨询卫星weixiaot168。2.店铺数据不直观,想要了解店铺运营真实数据情况v兔电商工具出品,更多干货: http://ask.vv-tool.com/
功能
1.数据转化,生意参谋原始指数数据转化成真实有效交易数据,有意向请咨询卫星weixiaot168。
2.店铺数据不直观,想要了解店铺运营真实数据情况
3.店铺流量减少,寻找店铺异常数据,从而有针对性进行方案制定



接口文档
生参指数转换
接口地址: http://api.vv-tool.com/tool/conversions/computed
接口介绍: 将生意参谋后台指数数据转换成真实的交易数据
请求方式: POST
传参方式: form-data
返回格式: JSON
接口收费: 包年包月,有意向请咨询卫星weixiaot168
频率限制: 10 次/秒
请求头参数
参数
类型
必选
示例
Authorization
string
授权 access_token
Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx
请求参数
参数
类型
必选
描述
type
int
转换类型 1:交易指数,2:流量指数,3:客群指数,4:收藏人气,5:加购指数,6:搜索人气,7:支付转化指数
item
string
待转换数据,多个以,分割
请求示例

type : 2 item : 796

请求代码示例
cURL请求代码示例

curl --location --request POST 'http://api.vv-tool.com/tool/conversions/computed' \ --header 'Connection: keep-alive' \ --header 'Accept: application/json, text/plain, */*' \ --header 'access-token: WXcwI7xqOuGabVPdhTaBB5LMpJKt_1Oc' \ --header 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36' \ --header 'Content-Type: application/x-www-form-urlencoded;charset=UTF-8' \ --header 'Origin: http://www.vv-tool.com' \ --header 'Referer: http://www.vv-tool.com/transformData' \ --header 'Accept-Language: zh,zh-CN;q=0.9' \ --header 'Cookie: Hm_lvt_eaa57ca47dacb4ad4f5a257001a3457c=1594955822,1595049020,1595211254; Hm_lvt_b2f2f0b6e89c111ec6ae8a8ffe0438b4=1595660326,1595811470,1595898219,1595983911; Hm_lpvt_b2f2f0b6e89c111ec6ae8a8ffe0438b4=1595989320; _csrf=d30f883e1fa01efb0992c0693f795b0c4ed5c41b756c0ea005c8063779fbe87fa%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22K0kdSzeX_YQz0-WOFYQypUXwsLhlp8o1%22%3B%7D; PHPSESSID=4hoqun4g2jv658khs8fd8pavqr; _csrf=e09fc277fdcd462eca27cf7fdceab4555d6a1f1d67e67c573b82a00a9e5269e4a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22JtaT6kv8izMtALsMvu3Brzggtw0uvsi4%22%3B%7D' \ --header 'Authorization: Bearer c2c20409e5f3f34437aece02c69b9a9dxxxxxxxx' \ --data-raw 'type=3&item=1235%2C4887%2C33685%2C3354'

PHP请求代码示例

<?php

$curl = curl_init();

curl_setopt_array($curl, array( CURLOPT_URL => "http://api.vv-tool.com/tool/conversions/computed", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 0, CURLOPT_FOLLOWLOCATION => true, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS =>"type=3&item=1235%2C4887%2C33685%2C3354", CURLOPT_HTTPHEADER => array( "Connection: keep-alive", "Accept: application/json, text/plain, */*", "access-token: WXcwI7xqOuGabVPdhTaBB5LMpJKt_1Oc", "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36", "Content-Type: application/x-www-form-urlencoded;charset=UTF-8", "Origin: http://www.vv-tool.com", "Referer: http://www.vv-tool.com/transformData", "Accept-Language: zh,zh-CN;q=0.9", "Cookie: Hm_lvt_eaa57ca47dacb4ad4f5a257001a3457c=1594955822,1595049020,1595211254; Hm_lvt_b2f2f0b6e89c111ec6ae8a8ffe0438b4=1595660326,1595811470,1595898219,1595983911; Hm_lpvt_b2f2f0b6e89c111ec6ae8a8ffe0438b4=1595989320; _csrf=d30f883e1fa01efb0992c0693f795b0c4ed5c41b756c0ea005c8063779fbe87fa%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22K0kdSzeX_YQz0-WOFYQypUXwsLhlp8o1%22%3B%7D; PHPSESSID=4hoqun4g2jv658khs8fd8pavqr; _csrf=e09fc277fdcd462eca27cf7fdceab4555d6a1f1d67e67c573b82a00a9e5269e4a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22JtaT6kv8izMtALsMvu3Brzggtw0uvsi4%22%3B%7D", "Authorization: Bearer c2c20409e5f3f34437aece02c69b9a9dxxxxxxxx" ), ));

$response = curl_exec($curl);

curl_close($curl); echo $response;

JAVA请求代码示例

OkHttpClient client = new OkHttpClient().newBuilder() .build(); MediaType mediaType = MediaType.parse("application/x-www-form-urlencoded;charset=UTF-8"); RequestBody body = RequestBody.create(mediaType, "type=3&item=1235%2C4887%2C33685%2C3354"); Request request = new Request.Builder() .url("http://api.vv-tool.com/tool/conversions/computed") .method("POST", body) .addHeader("Connection", "keep-alive") .addHeader("Accept", "application/json, text/plain, */*") .addHeader("access-token", "WXcwI7xqOuGabVPdhTaBB5LMpJKt_1Oc") .addHeader("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36") .addHeader("Content-Type", "application/x-www-form-urlencoded;charset=UTF-8") .addHeader("Origin", "http://www.vv-tool.com") .addHeader("Referer", "http://www.vv-tool.com/transformData") .addHeader("Accept-Language", "zh,zh-CN;q=0.9") .addHeader("Cookie", "Hm_lvt_eaa57ca47dacb4ad4f5a257001a3457c=1594955822,1595049020,1595211254; Hm_lvt_b2f2f0b6e89c111ec6ae8a8ffe0438b4=1595660326,1595811470,1595898219,1595983911; Hm_lpvt_b2f2f0b6e89c111ec6ae8a8ffe0438b4=1595989320; _csrf=d30f883e1fa01efb0992c0693f795b0c4ed5c41b756c0ea005c8063779fbe87fa%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22K0kdSzeX_YQz0-WOFYQypUXwsLhlp8o1%22%3B%7D; PHPSESSID=4hoqun4g2jv658khs8fd8pavqr; _csrf=e09fc277fdcd462eca27cf7fdceab4555d6a1f1d67e67c573b82a00a9e5269e4a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22JtaT6kv8izMtALsMvu3Brzggtw0uvsi4%22%3B%7D") .addHeader("Authorization", "Bearer c2c20409e5f3f34437aece02c69b9a9dxxxxxxxx") .build(); Response response = client.newCall(request).execute();

响应参数
参数
类型
描述
code
int
返回状态码
msg
string
返回码描述
msec
int
接口执行时间
time
int
接口返回时间
data
object
转换后的数据
返回数据

{ "code": 0, "msg": "成功", "msec": 64, "time": 1596266543, "data": [ "107" ] }

响应代码
代码
代码描述
解决方案
0
成功
100
请求参数错误
检查您的请求参数是否正确
101
请求超时,请重试
检查您的网络情况或者联系客服解决
200
系统错误,请联系客服
检查您的接口地址填写是否正确,其他问题联系客服解决
203
暂不支持当前接口
204
请求异常:无该接口权限,请前往官网开通正式接口。
前往官网开通该接口权限
204
请求异常:API 调用次数不足,请前往网站兑换次数。
前往官网充值该接口调用次数
401
身份凭证无效
在请求头中添加 access_token
v兔电商工具,详情: http://ask.vv-tool.com/
  • 发表于 11/03/2020 04:31:14
  • 阅读 ( 1074 )
  • 分类:API接口

你可能感兴趣的文章

相关问题

0 条评论

请先 登录 后评论
四七
四七

2182 篇文章

我来创作