PHP code example of cra / marketo-api
1. Go to this page and download the library: Download cra/marketo-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/ */
cra / marketo-api example snippets
use Cra\MarketoApi\Client;
$client = (new Client($config))->authenticate();
use Cra\MarketoApi\Endpoint\Asset\Folder;
$folderEndpoint = new Folder($client);
$folder = $folderEndpoint->queryByName('My awesome folder');
$folders = $folderEndpoint->browse($folder->folderId());