if (isset($_REQUEST['users'])) {
$response = $XeroOAuth->request('GET', $XeroOAuth->url('Users', 'core'), array('Where' => $_REQUEST['where']));
if ($XeroOAuth->response['code'] == 200) {
$users = $XeroOAuth->parseResponse($XeroOAuth->response['response'], $XeroOAuth->response['format']);
echo "There are " . count($users->Users[0]). " users in this Xero organisation, the first one is:
";
pr($users->Users[0]->User);
} else {
outputError($XeroOAuth);
}
}
To get the user information after connecting with xero?