Guest User

Untitled

a guest
Apr 22nd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. <li><a href="?organization=1">Organization</a></li>
  2. if (isset($_REQUEST['organisation'])) {
  3. $response = $XeroOAuth->request('GET', $XeroOAuth->url('Organisation', 'core'), array('page' => 0));
  4. if ($XeroOAuth->response['code'] == 200) {
  5. $organisation = $XeroOAuth->parseResponse($XeroOAuth->response['response'], $XeroOAuth->response['format']);
  6. print_r($organisation);
  7. echo "Organisation name: " . $organisation->Organisations[0]->Organisation->Name;
  8. } else {
  9. outputError($XeroOAuth);
  10. }
  11. }
  12.  
  13. Organisation name: Cadeo
Add Comment
Please, Sign In to add comment