Wowza Community

Issues creating, updating and retrieving data from Wowza Streaming Engine using PHP REST API

I am getting started with the Wowza PHP Library and I am having trouble connecting to the streaming engine i have installed locally. As directed from https://github.com/WowzaMediaSystems/wse-rest-library-php, I installed composer, created the config file with my server host and authentication settings

config.php

<code>define("WOWZA_HOST","http://192.168.43.149:8087/V2");
define("WOWZA_SERVER_INSTANCE","_defaultServer_");
define("WOWZA_VHOST_INSTANCE","_defaultVHost_");
define("WOWZA_USERNAME","admin");
define("WOWZA_PASSWORD","admin");

Then when trying tests to retrieve data from the server for example:

index.php

<code><?php
require_once ('vendor/autoload.php');
require_once("config/wowza_config.php");// It is simple to create a setup object for transporting our settings
$setup =newCom\Wowza\Entities\Application\Helpers\Settings();
$setup->setHost(WOWZA_HOST);
$setup->setUsername(WOWZA_USERNAME);
$setup->setPassword(WOWZA_PASSWORD);// Connect to the server or deal with statistics NOTICE THE CAPS IN COM AND    WOWZA
$wowzaApplication =newCom\Wowza\Application();
$results = $wowzaApplication->getAll();?>

I get Fatal error “Too few arguments to function Com\Wowza\Application::__construct()” …

Or when attempting other sample scripts to get data from the server I get either a

<code>object(stdClass)#8(4){["message"]=>string(40)"The request requires user authentication"["code"]=>string(3)"401"["wowzaServer"]=>string(5)"4.7.7"["success"]=>bool(false)}

or NULL returned.

Is there a clear platform that explains how the PHP REST API can be integrated and used to request, edit and display data? Or could someone help break down how this can be accomplished?

Thanks