Skip to content

Instantly share code, notes, and snippets.

@devdarren7
Created September 7, 2019 21:43
Show Gist options
  • Select an option

  • Save devdarren7/23b3e143fe6540d19b1c88098d704c43 to your computer and use it in GitHub Desktop.

Select an option

Save devdarren7/23b3e143fe6540d19b1c88098d704c43 to your computer and use it in GitHub Desktop.
?
//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