Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <li><a href="?organization=1">Organization</a></li>
- if (isset($_REQUEST['organisation'])) {
- $response = $XeroOAuth->request('GET', $XeroOAuth->url('Organisation', 'core'), array('page' => 0));
- if ($XeroOAuth->response['code'] == 200) {
- $organisation = $XeroOAuth->parseResponse($XeroOAuth->response['response'], $XeroOAuth->response['format']);
- print_r($organisation);
- echo "Organisation name: " . $organisation->Organisations[0]->Organisation->Name;
- } else {
- outputError($XeroOAuth);
- }
- }
- Organisation name: Cadeo
Add Comment
Please, Sign In to add comment