PHP code example of marketo-api / marketo-rest-client
1. Go to this page and download the library: Download marketo-api/marketo-rest-client 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/ */
marketo-api / marketo-rest-client example snippets
use CSD\Marketo\Client;
$client = Client::factory(array(
'client_id' => 'Marketo client ID', // ely, you can supply the full URL, e.g. 'url' => 'https://100-AEK-913.mktorest.com'
));
use CSD\Marketo\Client;
$client = Client::factory(array(
'client_id' => 'Marketo client ID', // ely, you can supply the full URL, e.g. 'url' => 'https://100-AEK-913.mktorest.com'
'bulk' => true // if uploading leads via file upload (e.g. csv)
));