seregazhuk / php-pinterest-bot

This PHP library will help you to work with your Pinterest account without using any API account credentials.
MIT License
416 stars 129 forks source link

Login method not working #523

Open policemal opened 3 years ago

policemal commented 3 years ago

my previously running codes are not working #442

I encountered an issue with the following code:

php use seregazhuk\PinterestBot\Factories\PinterestBot; $bot = PinterestBot::create(); $bot->auth->login($UserMail, $UserPassword);

if ($bot->user->isBanned()) {
    echo "Account has been banned!\n";
    die();
}

Library version: v5.9.1 PHP version: 7.3.11 I'm getting an error

Fatal error: Uncaught seregazhuk\PinterestBot\Exceptions\AuthRequired: Error calling seregazhuk\PinterestBot\Api\Providers\User::isBanned method. You must log in before. in C:\xampp\htdocs\sil\vendor\seregazhuk\pinterest-bot\src\Api\Providers\Core\ProviderWrapper.php:66 Stack trace: #0 C:\xampp\htdocs\sil\vendor\seregazhuk\pinterest-bot\src\Api\Providers\Core\ProviderWrapper.php(42): seregazhuk\PinterestBot\Api\Providers\Core\ProviderWrapper->checkMethodForLoginRequired('isBanned') #1 C:\xampp\htdocs\sil\pin.php(19): seregazhuk\PinterestBot\Api\Providers\Core\ProviderWrapper->__call('isBanned', Array) #2 {main} thrown in C:\xampp\htdocs\sil\vendor\seregazhuk\pinterest-bot\src\Api\Providers\Core\ProviderWrapper.php on line 66

Thanks for your help

KaraMirsat commented 3 years ago

I have that same problem

terentieva-av commented 3 years ago

I also had a problem with the login method a few days ago.

Method returns: [error] => Array ( [status] => failure [http_status] => 429 [code] => 9 [message] => We could not complete that request. [message_detail] => Sorry! Your request could not be completed. [api_error_code] => 9 )

dmoney1908 commented 3 years ago

I am getting same issue when trying to connect a new account

"Sorry! Your request could not be completed."

Is there any solution to this?

carolhng commented 3 years ago

I also getting same error message?

Is it due to Pinterest integrated with reCaptcha? Any fixes available?

Thank you.

carolhng commented 3 years ago

I converted my PHP script to python and use py3pin (new fixes with selenium/chrome webdriver) and now able to create pins again! Thanks.

murattikil commented 3 years ago

Same here. Very interesting, I have two Pinterest, one is working, one is not working. Both use the same code, in the same server.

policemal commented 3 years ago

@murattikil (murat bey 6 farklı hesapla denedim çalışmıyor)

I tried with 6 different accounts, it doesn't work

dejurin commented 3 years ago

same problem

dmoney1908 commented 3 years ago

Has anyone found solution to this for PHP?