Created
June 7, 2017 10:16
-
-
Save calcinai/e9b05d772aa5b75ed604cd1ecb9187ff to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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