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 does not seem to be working #456

Closed gyurisc closed 5 years ago

gyurisc commented 5 years ago

Hi @seregazhuk,

Thanks for this library. I am trying to use it but the login does not work for me. Here is the script I am trying to use:


// creating pins 
$bot = PinterestBot::create();
$bot->auth->register('yiyi22@garage146.com', 'secret', 'mike146899');
var_dump($bot->getLastError());

$bot->auth->login('yiyi22@garage146.com', 'secret', 'mike146899');
var_dump($bot->getLastError());

$bot->topics->follow('content-marketing');

var_dump($bot->user->id());
var_dump($bot->getLastError());

For the var dumps after register and login methods, I am receiving NULL

gyurisc commented 5 years ago

The issue is my fault. I was using an older version and all I needed to do is to get the latest version. Login works no ok. Sorry, for the confusion.