API/lbcreposter.php

21 lines
432 B
PHP

<?php
include 'vendor/autoload.php';
include 'library/Account.php';
$client = new \Goutte\Client();
$client->setClient(
new \GuzzleHttp\Client([
'timeout' => 90,
'verify' => false,
])
);
$login = 'xxxx';
$password = 'xxxx';
$account = new \Shikiryu\LBCReposter\Account($client, $login, $password);
if ($account->connect()) {
// existing deals
$deals = $account->getDeals();
var_dump($deals);
}