PHP code example of accordous / fluxous-client
1. Go to this page and download the library: Download accordous/fluxous-client 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/ */
accordous / fluxous-client example snippets
use Accordous\FluxousClient\Services\FluxousService;
$service = new FluxousService();
$data = [
'client_id' => '',
'client_secret' => '',
];
$response = $service->auth()->token($data);
$result = $response->json();
use Accordous\FluxousClient\Services\FluxousService;
$service = new FluxousService($clientId, $clientSecret);
$response = $service->categories()->index();
$result = $response->json();
use Accordous\FluxousClient\Services\FluxousService;
$service = new FluxousService($clientId, $clientSecret);
$attributes = [
'' => '',
];
$response = $service->categories()->store($attributes);
$result = $response->json();
use Accordous\FluxousClient\Services\FluxousService;
$service = new FluxousService($clientId, $clientSecret);
$attributes = [
'' => '',
];
$response = $service->accounts()->store($attributes);
$result = $response->json();
use Accordous\FluxousClient\Services\FluxousService;
$service = new FluxousService($clientId, $clientSecret);
$attributes = [
'' => '',
];
$response = $service->transactions()->store($attributes);
$result = $response->json();
shell
php artisan vendor:publish --tag=Fluxous