Is it possible to use the same API instance, storing it in some way?
I'm trying to store the int within _SESSION, but failed.
Will I have to log in to the API instance for each page?
$api = new \JKetelaar\fut\api\API(
$creds[ 'username' ], $creds[ 'password' ], $creds[ 'secret' ], $creds[ 'key' ], $creds[ 'platform' ]
);
$api->login();
$_SESSION['API'] = $api;
Is it possible to use the same API instance, storing it in some way?
I'm trying to store the int within _SESSION, but failed.
Will I have to log in to the API instance for each page?