timesheet source code
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

41 lignes
1.3KB

  1. <?php
  2. namespace Biukop;
  3. use \XeroPHP\Application\PrivateApplication;
  4. class Xero {
  5. private $xero;
  6. private function default_config(){
  7. $config = array(
  8. 'oauth' => [
  9. 'callback' => 'http://acaresydney.com.au/',
  10. 'consumer_key' => 'G6AJIRWTH0X3C5SVS3ETZXNFCMDNGG',
  11. 'consumer_secret' => 'LP0PTSBCJLBB4CGYYKOHDXYF2NWXWD',
  12. 'rsa_private_key' => 'file://' . dirname(__FILE__) . '/keys/privatekey.pem',
  13. ],
  14. );
  15. return $config;
  16. }
  17. private function office_config(){
  18. $office_config = [
  19. 'xero' => [
  20. // 'payroll_version' =>'1.9',
  21. ],
  22. 'curl' => [
  23. CURLOPT_USERAGENT =>'AcareSydneyWebOffice',
  24. ],
  25. 'oauth' => [
  26. 'callback' => 'http://acaresydney.com.au/',
  27. 'consumer_key' => 'JE4LWKCJ6NHED30RFZWCT7WQYTS8JD',
  28. 'consumer_secret' => 'JXVZAZWKGM7MLUZSVIMK7ZSJE9GNYQ',
  29. 'rsa_private_key' => 'file://' . dirname(__FILE__) . '/keys/privatekey.pem',
  30. ],
  31. ];
  32. return $office_config;
  33. }
  34. public function __construct(){
  35. $this->xero = new PrivateApplication($this->office_config());
  36. }
  37. }