PHP code example of collingmedia / marketo-assets-api

1. Go to this page and download the library: Download collingmedia/marketo-assets-api 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/ */

    

collingmedia / marketo-assets-api example snippets


    


_instance = new CollingMedia\Client\Api\ChannelsApi();
$max_return = 56; // int | Maximum number of channels to return.  Max 200, default 20
$offset = 56; // int | Integer offset for paging

try {
    $result = $api_instance->getAllChannelsUsingGET($max_return, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ChannelsApi->getAllChannelsUsingGET: ', $e->getMessage(), PHP_EOL;
}