Created
September 7, 2019 21:43
-
-
Save devdarren7/23b3e143fe6540d19b1c88098d704c43 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| ? | |
| //class KitWuBook | |
| class KitWuBook { | |
| //vars | |
| // private $var = 'default'; | |
| const HOST = 'https://wubook.net:443/xrws/'; | |
| private $srv; | |
| private $acc = ; | |
| private $pwd = ; | |
| private $lcd = ; | |
| private $err; | |
| //init | |
| //username, password, enviroment - are usual parameters | |
| //$lcode = Facility ID, you can find it on Facility->Site tab in WuBook | |
| //For each facility you will need to create separate object | |
| function __construct($username, $password, $lcode) { | |
| $this->srv = new xmlrpc_client(self::HOST); | |
| $this->srv->setSSLVerifyPeer(0); | |
| $this->acc ; | |
| $this->pwd ; | |
| $this->lcd = (int)$lcode; | |
| $this->err = ''; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment