获取抖音抖店订单相关信息,用于私域引流脚本

本文介绍了如何利用PHP后端技术从抖音抖店接口获取订单信息,以便进行私域流量的引流和管理。通过对接电商平台API,实现自动化处理订单数据,助力电子商务营销策略。
摘要由CSDN通过智能技术生成
<?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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值