PHP code example of seek-x2y / yuou-sdk

1. Go to this page and download the library: Download seek-x2y/yuou-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

seek-x2y / yuou-sdk example snippets




$yuou = new \Seek\YuouSDK\YuouSDK([
    'appKey' => '',
    'appSecret' => '',
    'rootUrl' => '',
    'isMiddlePlatform' => false, // 是否是中台系统
    'debug' => true, // 调试模式
    'exception_as_array' => true, // 错误返回数组还是异常
    'log' => [
        'name' => 'yuou',
        'file' => __DIR__.'/yuou.log',
        'level'      => 'debug',
        'permission' => 0777,
    ]
]);

// 获取订单
$result = $yuou->order->queryOrders();