Skip to content

yc-hwc/laravel-thisshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-thisshop

thisshop SDK

安装教程

composer require yc-hwc/laravel-thisshop

用法


配置

    $config = [
       'thisshopkUrl' => '',
       'appId'        => '',
       'appSecret'    => '',
       'signSecret'   => '',
       'token'        => '',
    ];

    $thisshopSDK = \PHPThisshop\ThisshopSDK::config($config);
    $config = [
        'thisshopkUrl' => '',
        'appId'        => '',
        'appSecret'    => '',
    ];

    $thisshopSDK = \PHPThisshop\ThisshopSDK::config($config);
    $response = $thisshopSDK->accessToken()->post();
    print_r($response);
    $config = [
        'thisshopkUrl' => '',
        'appId'        => '',
        'appSecret'    => '',
        'token'        => ''
    ];

    $thisshopSDK = \PHPThisshop\ThisshopSDK::config($config);
    $response = $thisshopSDK->tokenCheck()->post();
    print_r($response);
    $config = [
        'thisshopkUrl' => '',
        'appId'        => '',
        'signSecret'   => '',
        'token'        => '',
    ];

    $thisshopSDK = \PHPThisshop\ThisshopSDK::config($config);
    $response = $thisshopSDK->business()
        ->withMethod('thisshop.order.list.get')
        ->withData([
            'orderStatus' => 0,
        ])
        ->post();
    print_r($response);