This is standalone library, provides php implementation to interact with foxie.com messaging API.
- Create Credentials and Connection classes
$credentials = new Foxie\Connection\Credentials($username, $password);
$connection = new Foxie\Connection\Connection($credentials);
- Make Request class and pass connection to it's constructor argument, then call
send()
method with argument of array, that contain required and optional parameters of the request, based on Api Documentation.
$request = new Foxie\Request\Balance($connection);
$response = $request->send([]);
- The response will contain Data class with result of your request.
echo $response->balance; // 0.0