php-pinterest-bot icon indicating copy to clipboard operation
php-pinterest-bot copied to clipboard

Ask me to reset password always (proxy)

Open pauznet opened this issue 5 years ago • 1 comments

Hello, I use a proxy to save pins, the problem is that Pinterest ask me to reset password always. Thanks you

pauznet avatar Feb 13 '20 13:02 pauznet

@pauznet Add User-Agent to prevent reset password issue (Safe mode!)

$this->bot->getHttpClient()->setOptions([
    CURLOPT_USERAGENT => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36',
    CURLOPT_PROXY => '',
    CURLOPT_PROXYPORT => '',
    CURLOPT_PROXYTYPE => CURLPROXY_HTTP,
    CURLOPT_PROXYUSERPWD => '',
]);

trungpv1601 avatar May 13 '20 10:05 trungpv1601