全部
淘宝客
在线测试

美团联盟外卖红包


接口地址: http://api.vv-tool.com/tool/waimai/meituan_privilege


接口介绍: 此接口是直接对接美团联盟官方活动【美团外卖 CPS+CPA 推广活动】接口可自定义推广渠道,方便跟单结算。点击查看详情


请求方式: POST


返回格式: JSON


接口收费: 联系客服


频率限制: 10 次/秒


请求头参数

参数 类型 必选 示例
Authorization string 授权 access_token Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx

请求参数

参数 类型 必选 描述
sid string 渠道方用户唯一标识,渠道可自定义,长度不超过 50,参数中不能包含 dafengche,用于向用户返佣,支持小写字母和数字的格式,其它字符可能造成无法正常跟单
generate_we_app Boolean 是否生成小程序推广信息
qrcode Boolean 二维码图片

请求示例

sid:123456

请求代码示例

cURL请求代码示例
curl --location --request POST 'http://api.vv-tool.com/tool/waimai/meituan_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_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_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 string H5 领券
short_h5 string H5 领券短链接
deeplink string Deeplink 领券
h5_evoke string H5 内唤起页
qrcode string 二维码海报图片路径
we_app_info string 小程序信息
L app_id string 小程序 ID
L page_path string 小程序路径
L miniCode string 小程序码

返回数据

{
    "code": 0,
    "msg": "成功",
    "msec": 558,
    "time": 1612403448,
    "data": {
       "h5": "https://runion.meituan.com/url?key=a144a9fa40a42c55af00214bb4bb3993971&url=https%3A%2F%2Fcube.meituan.com%2Fawp%2Fhfe%2Fblock%2Fa945391288b790d558b7%2F78716%2Findex.html%3Fappkey%3Da144a9fa40a42c55af00214bb4bb3993971%3A2dafengche123456&sid=2dafengche123456",
      "short_h5":"https://click.dafengche.com/mt.php?t=1&u=2&k=123456",
      "deeplink": "imeituan://www.meituan.com/web?lch=cps:waimai:3:a144a9fa40a42c55af00214bb4bb3993971:2dafengche123456&url=https%3A%2F%2Frunion.meituan.com%2Furl%3Fkey%3Da144a9fa40a42c55af00214bb4bb3993971%26url%3Dhttps%253A%252F%252Fcube.meituan.com%252Fawp%252Fhfe%252Fblock%252Fa945391288b790d558b7%252F78716%252Findex.html%253Fappkey%253Da144a9fa40a42c55af00214bb4bb3993971%253A2dafengche123456%26sid%3D2dafengche123456",
      "h5_evoke": "https://w.dianping.com/cube/evoke/growcps/meituan.html?lch=cps:waimai:1:a144a9fa40a42c55af00214bb4bb3993971:2dafengche123456&url=https%3A%2F%2Frunion.meituan.com%2Furl%3Fkey%3Da144a9fa40a42c55af00214bb4bb3993971%26url%3Dhttps%253A%252F%252Fcube.meituan.com%252Fawp%252Fhfe%252Fblock%252Fa945391288b790d558b7%252F78716%252Findex.html%253Fappkey%253Da144a9fa40a42c55af00214bb4bb3993971%253A2dafengche123456%26sid%3D2dafengche123456",
      "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%252Fa13b87919a9ace9cfab4%252F89400%252Findex.html%253Fappkey%253Da144a9fa40a42c55af00214bb4bb3993971%253A2dafengche123456%26sid%3D2dafengche123456&f_token=1&f_userId=1",
      "miniCode": "http://p0.meituan.net/poiqrcode/cdec3f55f08a1bb5e064cd44e0ba2a86100802.jpg"
}
    }
}

响应代码

代码 代码描述 解决方案

公共错误码点击查看详情