cleaned up code base thoroughly

This commit is contained in:
2021-02-15 17:18:12 +09:00
parent 21aa932bd4
commit bea3cdd1a4
64 changed files with 471 additions and 3702 deletions
+5 -20
View File
@@ -14,6 +14,7 @@ use Seat\Eseye\Exceptions\RequestFailedException;
use App\Library\Esi\Esi;
use Seat\Eseye\Cache\NullCache;
use Seat\Eseye\Configuration;
use App\Library\Helpers\FinanceHelper;
class Test extends Command
{
@@ -48,27 +49,11 @@ class Test extends Command
*/
public function handle()
{
//Declare some variables
$esiHelper = new Esi;
$helper = new FinanceHelper;
$config = config('esi');
$receipt = $helper->GetApiWalletJournal(1, $config['primary']);
//Set caching to null
$configuration = Configuration::getInstance();
$configuration->cache = NullCache::class;
//Get the ESI Token
$token = $esiHelper->GetRefreshToken($config['primary']);
$esi = $esiHelper->SetupEsiAuthentication($token);
try {
$stuff = $esi->invoke('get', '/corporations/{corporation_id}/wallets/{division}/journal/', [
'corporation_id' => $config['corporation'],
'division' => 1,
]);
} catch(RequestFailedException $e) {
dd($e);
}
dd(json_decode($stuff->raw, true));
var_dump($receipt);
}
}