dragonpolls/bootstrap.php

21 lines
416 B
PHP
Raw Permalink Normal View History

2021-03-11 16:51:25 +00:00
<?php
require __DIR__ .'/vendor/autoload.php';
use APnutI\APnutI;
2021-03-27 19:37:17 +00:00
use Monolog\Logger;
2021-03-11 16:51:25 +00:00
session_start();
$config = include(__DIR__.'/config.php');
$api = new APnutI(
$config['client_secret'],
$config['client_id'],
2021-03-11 16:51:25 +00:00
$config['permission_scopes'],
$config['app_name'],
$config['callback_url'],
2021-03-27 19:37:17 +00:00
__DIR__.'/'.$config['log_file'],
$config['log_level']
2021-03-11 16:51:25 +00:00
);
2021-03-27 19:37:17 +00:00
require_once __DIR__ . '/globals.php';