API/lbcreposter.php

21 lines
432 B
PHP
Raw Normal View History

2016-08-21 22:54:00 +02:00
<?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);
}