Ajoute le fichier de lancement

This commit is contained in:
Shikiryu 2016-08-21 22:54:00 +02:00
parent 7bbf5a8dff
commit 885c5c7871

21
lbcreposter.php Normal file
View File

@ -0,0 +1,21 @@
<?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);
}