Ajoute le fichier de lancement
This commit is contained in:
parent
7bbf5a8dff
commit
885c5c7871
21
lbcreposter.php
Normal file
21
lbcreposter.php
Normal 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);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user