gnello / php-openfire-restapi

A complete PHP client for the Openfire REST API Plugin.
Apache License 2.0
30 stars 14 forks source link

Issue in printing the requests and connecting to openfire. #6

Closed Rajan1992 closed 8 years ago

Rajan1992 commented 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,