Open theboxer opened 2 years ago
Example init:
$config = [ 'use_sandbox' => false ]; $config['client_id'] = 'client_XXXXXXXXXXXXXXX'; $config['client_secret'] = 'XXXXXXXXXXXXXXX'; $config['refresh_token'] = 'XXXXXXXXXXXXXXX'; if (isset($_SESSION['access_token'])) { $config['access_token'] = $_SESSION['access_token']; } if (isset($_SESSION['access_token_expires'])) { $config['access_token_expires'] = $_SESSION['access_token_expires']; } $psr17Factory = new \Nyholm\Psr7\Factory\Psr17Factory(); $psr18Client = new \Buzz\Client\Curl($psr17Factory); $fc = new FoxyClient($psr17Factory, $psr18Client, $config); $res = $fc->get();
Example init: