I am struggling with REST API calls, I want to fetch all the records with all the fields available in them through REST. This is what I have tried so far:
$client = new EloquaRequest($eloqua_site, $eloqua_user, $eloqua_password, 'https://secure.eloqua.com/API/REST/1.0');
$accounts = $client->get('/data/accounts?search=*&count=1000&page=1&depth=complete');
now when I print $accounts it only gives this output:
[1] => stdClass Object
(
[type] => Account
[id] => 365
[createdAt] => 1372683444
[depth] => complete
[description] =>
[name] => Verkeer en Waterstaat
[updatedAt] => 1372683444
[address1] =>
[address2] =>
[address3] =>
[businessPhone] =>
[city] =>
[country] =>
[fieldValues] => Array
(
)
[postalCode] =>
[province] =>
)
There are more number of fields available under 'Accounts' than what is visible here. All the custom fields are also not fetched, reason unknown!
Your help is much appreciated in resolving this issue at earliest.