this library is still working?
https://github.com/notfoundsam/yahoo-auction
i try to login in backend but it’s return error
Error: Undefined array key 0
Backend:
public function index()
{
try {
$userName = "*****";
$userPass = "*****";
$cookieFilePath = storage_path('app/cookie.cache');
if (!file_exists($cookieFilePath)) {
file_put_contents($cookieFilePath, serialize([]));
}
$cookie = file_get_contents($cookieFilePath);
$cookieJar = $cookie !== false ? unserialize($cookie) : [];
$browser = new Browser($userName, $userPass, null, $cookieJar);
var_dump($browser->login());
var_dump($browser->checkLogin());
// return response()->json([
// 'success' => true,
// 'data' => [
// 'browser' => $browser
// ],
// ]);
} catch (Exception $e) {
echo "Error: " . $e->getMessage();
}
i try to login but it’s return the error