PHP code example of youxianbo / oceanengine-sdk

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

    

youxianbo / oceanengine-sdk example snippets


    


Instance = new Oceanengine\Open\Api\AdvertiserApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$access_token = {{access_token}}; // string | 
$x_debug_mode = 56; // int | 
$inline_object7 = new \Oceanengine\Open\Model\InlineObject7(); // \Oceanengine\Open\Model\InlineObject7 | 

try {
    $result = $apiInstance->call2AdvertiserFundDailyStatGet($access_token, $x_debug_mode, $inline_object7);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling AdvertiserApi->call2AdvertiserFundDailyStatGet: ', $e->getMessage(), PHP_EOL;
}