PHP code example of fredbradley / xirrusapi
1. Go to this page and download the library: Download fredbradley/xirrusapi library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fredbradley / xirrusapi example snippets
php
// Override default options
$default_options = [
'verify' => true, // set to false, if you are up against SSL verification issues
/**
* Please note: Setting this to false is not recommended
* and weakens the security of your system, but
* sometimes for testing purposes is nessecary
*/
];
$api = new \FredBradley\XirrusApi\XirrusApi("https://xmsserver.tld:9443", "exampleusername", "examplepassword", $default_options);
$api->request("GET", "stations.json"); // This will get you a php json object of your api result dataset