PHP code example of sellerlegend / sellerlegend-sdk-php

1. Go to this page and download the library: Download sellerlegend/sellerlegend-sdk-php 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/ */

    

sellerlegend / sellerlegend-sdk-php example snippets


composer 

$ php artisan vendor:publish --tag=sellerlegend

$request = $client->getAccessToken($request->get("code"));

use SellerLegend\Http\ReportsClient;

$client = new ReportsClient($config);

$data = [
    'account_id' => '1xxxxx',
    'dps_date'   => '2020-07-01'
];

$response = $client->requestReport($data);

use SellerLegend\Http\NotificationsClient;

$client = new NotificationsClient($config);

$notification_type = "Export Report";
$response = $client->getNotificationsList($notification_type);