全部
淘宝客
在线测试
美团闪购 CPS 推广
接口地址: http://api.vv-tool.com/tool/waimai/meituan_sg_privilege
接口介绍: 此接口是直接对接美团联盟官方活动【闪购 CPS 推广活动】接口可自定义推广渠道,方便跟单结算。点击查看详情
请求方式: POST
返回格式: JSON
接口收费: 联系客服
频率限制: 10 次/秒
请求头参数
参数 | 类型 | 必选 | 值 | 示例 |
---|---|---|---|---|
Authorization | string | 是 | 授权 access_token | Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx |
请求参数
参数 | 类型 | 必选 | 描述 |
---|---|---|---|
sid | string | 是 | 渠道方用户唯一标识,渠道可自定义,长度不超过 50,参数中不能包含 dafengche,用于向用户返佣,支持小写字母和数字的格式,其它字符可能造成无法正常跟单 |
generate_we_app | string | 否 | 是否生成小程序推广信息 |
qrcode | string | 否 | 是否生成二维码海报 |
请求示例
sid:123456
请求代码示例
cURL请求代码示例
curl --location --request POST 'http://api.vv-tool.com/tool/waimai/meituan_sg_privilege' \
--header 'Authorization: Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx' \
--form 'sid="123456"'
PHP请求代码示例
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'http://api.vv-tool.com/tool/waimai/meituan_sg_privilege',
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 => array('sid' => '123456'),
CURLOPT_HTTPHEADER => array(
'Authorization: Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
JAVA请求代码示例
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
MediaType mediaType = MediaType.parse("text/plain");
RequestBody body = new MultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("sid","123456")
.build();
Request request = new Request.Builder()
.url("http://api.vv-tool.com/tool/waimai/meituan_sg_privilege")
.method("POST", body)
.addHeader("Authorization", "Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx")
.build();
Response response = client.newCall(request).execute();
响应参数
参数 | 类型 | 描述 |
---|---|---|
code | int | 错误码 0 为成功 |
msg | string | 返回码描述 |
msec | int | 接口执行时间 |
time | int | 接口返回时间 |
h5 | object | H5 领券 |
deeplink | integer | Deeplink 领券 |
h5_evoke | string | H5 内唤起页 |
short_h5 | string | h5 短连接 |
we_app_info | object | 小程序信息 |
L app_id | string | 小程序 ID |
L page_path | string | 小程序路径 |
L miniCode | string | 小程序码 |
qrcode | string | 海报 |
返回数据
{
"code": 0,
"msg": "成功",
"msec": 558,
"time": 1612403448,
"data": {
"h5": "https://runion.meituan.com/url?key=a144a9fa40a42c55af00214bb4bb3993971&url=https%3A%2F%2Fi.meituan.com%2Fawp%2Fhfe%2Fblock%2F652c4b9d8a2425a98ca5%2F92207%2Findex.html%3Fappkey%3Da144a9fa40a42c55af00214bb4bb3993971%3A4dafengche123456&sid=4dafengche123456",
"deeplink": "imeituan://www.meituan.com/web?lch=cps:waimai:3:a144a9fa40a42c55af00214bb4bb3993971:4dafengche123456&url=https%3A%2F%2Frunion.meituan.com%2Furl%3Fkey%3Da144a9fa40a42c55af00214bb4bb3993971%26url%3Dhttps%253A%252F%252Fi.meituan.com%252Fawp%252Fhfe%252Fblock%252Findex.html%253Fcube_h%253D9ab73a5aacf9926124d3%2526cube_i%253D94438%2526appkey%253Da144a9fa40a42c55af00214bb4bb3993971%253A4dafengche123456%26sid%3D4dafengche123456",
"h5_evoke": "https://w.dianping.com/cube/evoke/zz_cps/meituan.html?lch=cps:waimai:1:a144a9fa40a42c55af00214bb4bb3993971:4dafengche123456&url=https%3A%2F%2Frunion.meituan.com%2Furl%3Fkey%3Da144a9fa40a42c55af00214bb4bb3993971%26url%3Dhttps%253A%252F%252Fi.meituan.com%252Fawp%252Fhfe%252Fblock%252Findex.html%253Fcube_h%253D9ab73a5aacf9926124d3%2526cube_i%253D94438%2526appkey%253Da144a9fa40a42c55af00214bb4bb3993971%253A4dafengche123456%26sid%3D4dafengche123456",
"short_h5": "https://click.dafengche.com/sx.php?u=4&k=123456",
"we_app_info": {
"app_id": "wxde8ac0a21135c07d",
"page_path": "/index/pages/h5/h5?weburl=https%3A%2F%2Frunion.meituan.com%2Furl%3Fkey%3Da144a9fa40a42c55af00214bb4bb3993971%26url%3Dhttps%253A%252F%252Fi.meituan.com%252Fawp%252Fhfe%252Fblock%252Fc9ff59b58f6f5bf385b6%252F94455%252Findex.html%253Fappkey%253Da144a9fa40a42c55af00214bb4bb3993971%253A4dafengche123456%26sid%3D4dafengche123456&lch=cps:waimai:5:a144a9fa40a42c55af00214bb4bb3993971:4dafengche123456&f_token=1&f_userId=1",
"miniCode": "http://p1.meituan.net/poiqrcode/0d53abc5ab538ca235edb24a552af1e0100447.jpg"
},
"qrcode": "https://wxqrcode.dafengche.com/qrcode/images/meituan/2021-04-18/c6561e27b1b209e8d0615241973fad58/c6561e27b1b209e8d0615241973fad58.jpg"
}
}
响应代码
代码 | 代码描述 | 解决方案 |
---|
公共错误码点击查看详情