<?php
function http_request($url, $data = null, $header = null){
$curl = curl_init();
if(!empty($header)){
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
curl_setopt($curl, CURLOPT_HEADER, 0);//返回response头部信息
}
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
if (!empty($data)) {
curl_setopt($curl, CURLOPT_HTTPGET, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS,http_build_query($data));
}
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE);
$output = curl_exec($curl);
curl_close($curl);
return $output;
}
//默认第一页 如果需要翻页,默认 0 =1 1=2 2=3 3=4
$page_nums = 0;
//默认获取一页里面有30个数据
$page_user_num = 30;
$page_url = 'https://fxg.jinritemai.com/api/order/searchlist?tab=all&order_by=create_time&order=desc&ttl=1642054987817&page='.$page_nums.'&pageSize='.$page_num.'&appid=1&__token='.$token.'&_bid=ffa_order&aid=4272&_lid=549967755436&msToken='.$mstoekn;
//店铺COOKIE 必填
$cookie = 'ttcid=cffb96cb16c64dc3ba453dcf73546a8e28; _ga=GA1.2.1071015542.1622179523; MONITOR_WEB_ID=d0a1642e-2cea-4238-a788-511f39fcd694; passport_csrf_token_default=57f76d05bbe50c34e32ad8d6322c7788; passport_csrf_token=57f76d05bbe50c34e32ad8d6322c7788; _tea=TEA-2494f550-d6d7-b85d-6cdb-dfac5abe01b1; d_ticket=c0f2e0bfa2f3a4b36bf628fc9568fa97aba13; SHOP_ID=9016285; PIGEON_CID=791265129018776; MONITOR_DEVICE_ID=0b5f782b-a87f-4d4e-96e6-fe0e3b4eed5d; gfpart_1.0.0.163_132676=0; gf_part_132775=0; _tea_utm_cache_2018=undefined; sso_auth_status=11ffe7e533ba067128331a74b5073922; sso_auth_status_ss=11ffe7e533ba067128331a74b5073922; _tea_utm_cache_1574=undefined; x-jupiter-uuid=16418060869083160; n_mh=ngynNuC0PiA6NYKAVsgKJL3FK4x--63lybb7cubLEj4; sso_uid_tt=c8949c351805f2cffdc5066ecad57909; sso_uid_tt_ss=c8949c351805f2cffdc5066ecad57909; toutiao_sso_user=04a98a726b1c763f6590a512ab0b57fb; toutiao_sso_user_ss=04a98a726b1c763f6590a512ab0b57fb; ttwid=1%7CXaJ_up5RRJZaWtb5P6ddHmIuLGOQgEhrCq0meTYOKnc%7C1641806767%7Cd887944fb0f8fbab29e25
获取抖音抖店订单相关信息,用于私域引流脚本
最新推荐文章于 2024-11-08 12:34:34 发布
本文介绍了如何利用PHP后端技术从抖音抖店接口获取订单信息,以便进行私域流量的引流和管理。通过对接电商平台API,实现自动化处理订单数据,助力电子商务营销策略。
摘要由CSDN通过智能技术生成