参数 | 类型 | 必选 | 值 | 示例 |
Authorization | string | 是 | 授权 access_token | Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx |
参数 | 类型 | 必选 | 描述 |
user_ids | string | 是 | 拼多多uid,多个uid,以英文逗号分隔,最多上传200个 |
product_ids | string | 是 | 宝贝ID,多个商品id,以英文逗号分割,最多上传4个 |
type | int | 是 | 1 |
curl --location --request POST 'http://xxxxxxxxxxxxxxxxxx.com/tool/accounts/pdd-fscreen' \ --header 'Authorization: Bearer 11683106389732d5828aa1ed8393d8dxxxxxxxx' \ --header 'Cookie: PHPSESSID=7oragegj44p1v145fhaev7o4n3; _csrf=1f6e5182cd1bdc8d2fdc125cf0f7fdb5dbbfae07e26e4767c84ca1589192862ea%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22A4oCXFPj8zx4Y3ojE_jLZs6C_BLZQwRQ%22%3B%7D' \ --form 'user_ids=3729078027,123' \ --form 'product_ids=4231279378,126589803702' \ --form 'type=1'
OkHttpClient client =newOkHttpClient().newBuilder() .build(); MediaType mediaType = MediaType.parse("text/plain"); RequestBody body =newMultipartBody.Builder().setType(MultipartBody.FORM) .addFormDataPart("user_ids", "3729078027,123") .addFormDataPart("product_ids", "4231279378,126589803702") .addFormDataPart("type", "1") .build(); Request request =newRequest.Builder() .url("http://xxxxxxxxxxxxxxxxxxxxxx.com/tool/accounts/pdd-fscreen") .method("POST", body) .addHeader("Authorization", "Bearer 11683106389732d5828aa1ed8393d8xxxxxxxx") .addHeader("Cookie", "PHPSESSID=7oragegj44p1v145fhaev7o4n3; _csrf=1f6e5182cd1bdc8d2fdc125cf0f7fdb5dbbfae07e26e4767c84ca1589192862ea%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22A4oCXFPj8zx4Y3ojE_jLZs6C_BLZQwRQ%22%3B%7D") .build(); Response response = client.newCall(request).execute();
OkHttpClient client =newOkHttpClient().newBuilder() .build(); MediaType mediaType =MediaType.parse("text/plain"); RequestBody body =newMultipartBody.Builder().setType(MultipartBody.FORM) .addFormDataPart("user_ids", "3729078027,123") .addFormDataPart("product_ids", "4231279378,126589803702") .addFormDataPart("type", "1") .build(); Request request =newRequest.Builder() .url("http://xxxxxxxxxxxxxxxxxxx.com/tool/accounts/pdd-fscreen") .method("POST", body) .addHeader("Authorization", "Bearer 11683106389732d5828aa1ed8393d8dxxxxxxxx") .addHeader("Cookie", "PHPSESSID=7oragegj44p1v145fhaev7o4n3; _csrf=d69e7622c93429890485e418d815e285282a82fb0d8e7c663561485853034667a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%22DHnPhSVhwCgCSyecmM0Ilbe0ny4S7w7_%22%3B%7D") .build(); Response response = client.newCall(request).execute();
参数 | 类型 | 描述 |
data | object | 执行任务 |
id | int | 任务id |
code | int | 返回代码 |
msg | string | 返回码描述 |
msec | int | 接口执行时间 |
time | int | 接口返回时间 |
{ "code":0, "msg":"成功", "msec":210, "time":1603090753, "data": { "id":258 } }
参数 | 类型 | 必选 | 值 | 示例 |
Authorization | string | 是 | 授权 access_token | Bearer 1798c6aadec33d1bc2f5b707f1049aefexxxx |
参数 | 类型 | 必选 | 描述 |
type | int | 是 | 2 |
ids | string | 是 | 打标结果返回的id |
curl --location --request POST 'http://xxxxxxxxxxx.com/tool/accounts/pdd-fscreen' \ --header 'Authorization: Bearer 11683106389732d5828aa1ed8393d8xxxxxxxx' \ --header 'Cookie: PHPSESSID=7oragegj44p1v145fhaev7o4n3; _csrf=2866af5790357be0ae474a2dd284420aa68e1f15f5aa6a41d4ef4ff5b97f9990a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%225Mh56InKWnoQ23g4gvtoMfQ5Gh3tRlp7%22%3B%7D' \ --form 'type=2' \ --form 'ids=256,255'
<?php $curl =curl_init(); curl_setopt_array($curl, array( CURLOPT_URL=>"http://xxxxxxxxxxxxxxxxxx.com/tool/accounts/pdd-fscreen", 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('type'=>'2','ids'=>'256,255'), CURLOPT_HTTPHEADER=>array( "Authorization: Bearer 11683106389732d5828aa1ed8393d8dxxxxxxxx", "Cookie: PHPSESSID=7oragegj44p1v145fhaev7o4n3; _csrf=2866af5790357be0ae474a2dd284420aa68e1f15f5aa6a41d4ef4ff5b97f9990a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%225Mh56InKWnoQ23g4gvtoMfQ5Gh3tRlp7%22%3B%7D" ), )); $response =curl_exec($curl); curl_close($curl); echo $response;
OkHttpClient client =newOkHttpClient().newBuilder()
.build();
MediaType mediaType =MediaType.parse("text/plain");
RequestBody body =newMultipartBody.Builder().setType(MultipartBody.FORM)
.addFormDataPart("type", "2")
.addFormDataPart("ids", "256,255")
.build();
Request request =newRequest.Builder()
.url("http://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.com/tool/accounts/pdd-fscreen")
.method("POST", body)
.addHeader("Authorization", "Bearer 11683106389732d5828aa1ed8393d8d9cxxxxxxxx")
.addHeader("Cookie", "PHPSESSID=7oragegj44p1v145fhaev7o4n3; _csrf=2866af5790357be0ae474a2dd284420aa68e1f15f5aa6a41d4ef4ff5b97f9990a%3A2%3A%7Bi%3A0%3Bs%3A5%3A%22_csrf%22%3Bi%3A1%3Bs%3A32%3A%225Mh56InKWnoQ23g4gvtoMfQ5Gh3tRlp7%22%3B%7D")
.build();
Response response = client.newCall(request).
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!