Skip to content

Instantly share code, notes, and snippets.

@calcinai
Created June 7, 2017 10:16
Show Gist options
  • Save calcinai/e9b05d772aa5b75ed604cd1ecb9187ff to your computer and use it in GitHub Desktop.
Save calcinai/e9b05d772aa5b75ed604cd1ecb9187ff to your computer and use it in GitHub Desktop.
<?php
$xero = new PrivateApplication($config);
/** @var Contact[] $contacts */
$contacts = $xero->load('Accounting\\Contact')->execute();
foreach($contacts as $contact){
//do something here
//this will give you the raw data without the object structure
print_r($contact->toStringArray());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment