Looking to hire Laravel developers? Try LaraJobs

laravel-temu maintained by yc-hwc

Description
PHP Temu Client
Author
Last update
2025/08/26 04:09 (dev-main)
License
Links
Downloads
7

Comments
comments powered by Disqus

laravel-temu

temu client

安装教程

composer require yc-hwc/laravel-temu

用法


配置

       $config = [
           'temuUrl'     => '',
           'accessToken' => '',
           'appKey'      => '',
           'appSecret'   => '',
       ];
    
       $temuClient = \PHPTemu\V1\TemuClient::config($config);

订单列表

       $config = [
           'temuUrl'     => '',
           'accessToken' => '',
           'appKey'      => '',
           'appSecret'   => '',
       ];

        $params = [
            'pageNumber' => 1,
            'pageSize'   => 10
        ];
        $temuClient = \PHPTemu\V1\TemuClient::config($config);
        $res = $temuClient->api('bg.order.list.v2.get')->withBody($params)->post();
        print_r($res);