PHP code example of shell / data-and-reporting-sdk

1. Go to this page and download the library: Download shell/data-and-reporting-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/ */

    

shell / data-and-reporting-sdk example snippets


composer 

"    "shell/data-and-reporting-sdk": "1.0.0"
}

$client = ShellDataReportingAPIsClientBuilder::init()
    ->basicAuthCredentials(
        BasicAuthCredentialsBuilder::init(
            'Username',
            'Password'
        )
    )
    ->bearerTokenCredentials(
        BearerTokenCredentialsBuilder::init(
            'OAuthClientId',
            'OAuthClientSecret'
        )
    )
    ->environment('SIT')
    ->build();