Closed Rajan1992 closed 8 years ago
I tried connecting this way: `<?php
include "vendor/autoload.php";
$api = new \Gnello\OpenFireRestAPI\API();
//Set the required config parameters $api->Settings()->setSecret("YWRtaW46YWRtaW4"); $api->Settings()->setHost("localhost.localdomain "); $api->Settings()->setServerName(" localhost.localdomain ");
//Default values $api->Settings()->setPort("9090"); $api->Settings()->setSSL(false); $api->Settings()->setPlugin("/plugins/restapi");
$api->Settings()->setDebug(true); $requests = \Gnello\OpenFireRestAPI\Debug\Request::getRequests();
var_dump($requests);
`
When I var_dump requests it shows empty,
I tried connecting this way: `<?php
include "vendor/autoload.php";
$api = new \Gnello\OpenFireRestAPI\API();
//Set the required config parameters $api->Settings()->setSecret("YWRtaW46YWRtaW4"); $api->Settings()->setHost("localhost.localdomain "); $api->Settings()->setServerName(" localhost.localdomain ");
//Default values $api->Settings()->setPort("9090"); $api->Settings()->setSSL(false); $api->Settings()->setPlugin("/plugins/restapi");
$api->Settings()->setDebug(true); $requests = \Gnello\OpenFireRestAPI\Debug\Request::getRequests();
var_dump($requests);
`
When I var_dump requests it shows empty,