PHP code example of yc-hwc / laravel-thisshop

1. Go to this page and download the library: Download yc-hwc/laravel-thisshop 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/ */

    

yc-hwc / laravel-thisshop example snippets

`
    $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);