PHP code example of pmatseykanets / marketo-client
1. Go to this page and download the library: Download pmatseykanets/marketo-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/ */
pmatseykanets / marketo-client example snippets
$config = [
// '02d92ff0-9d94-4de7-b152-3df68969b947',
'client_secret' => 'bB6wmEvjlsfVr1Vs3NfGwSD9HL2AAHzZ',
'url' => 'https://123-XYZ-456.mktorest.com'
// optional
'partner_id' => '123456789'
];
$marketo = new Client($config);
$marketo = new Client();
$request = $marketo->leadDatabase()->getLists();
foreach ($request->send() as $response) {
foreach ($response->result ?? [] as $list) {
// do something with a list
}
}