GithubHelp home page GithubHelp logo

Comments (7)

seregazhuk avatar seregazhuk commented on July 25, 2024

Hi, @rajenpal033
Yes, the next release will come with the ability to reset passwords and invitations by email. I think it will be done on Monday.

from php-pinterest-bot.

rajenpal033 avatar rajenpal033 commented on July 25, 2024

Thanks for your information, but it seems to be many functions for pins, boards, pinners, search etc. not working getting blank response. is there any reason?
Thanks.

from php-pinterest-bot.

seregazhuk avatar seregazhuk commented on July 25, 2024

Can you give an example, what functions don't work?

from php-pinterest-bot.

rajenpal033 avatar rajenpal033 commented on July 25, 2024

$bot->pins->info(pintId);
$bot->pins->search('wedding'); (this was working few hours ago)
$bot->pins->comment(pintId, 'nice one!');
and almost other functions from pins, boards as in like, repin etc. and the strange this is even the search is not working. But it's not like all are's working, some like user->profile, boards->forUser these are working fine. I just modified one of your file to save and fetch cookie, in CurlHttpClient.php file as following:

protected function initCookieFile($username){
$mainDir = dirname(FILE).DIRECTORY_SEPARATOR.'data'.DIRECTORY_SEPARATOR.$username;
if(!is_dir($mainDir)){
mkdir($mainDir, 0755);
}
if(empty($username)) {
return tempnam($mainDir, self::COOKIE_PREFIX);
}
$cookieName = self::COOKIE_PREFIX . $username;
$cookieFilePath = $mainDir . DIRECTORY_SEPARATOR . $cookieName;
if (!file_exists($cookieFilePath)) {
touch($cookieFilePath);
}
return $cookieFilePath;
}

Let me know.
Thanks in advance.

from php-pinterest-bot.

seregazhuk avatar seregazhuk commented on July 25, 2024
  1. If you use FILE, there is no such constant in php, try to use FILE
  2. If out have your own FILE constant, I think your $mainDir doesn't have permissions and bot can't save cookie files.

from php-pinterest-bot.

seregazhuk avatar seregazhuk commented on July 25, 2024

update to the latest release (4.13.0) and you can send invites like this:

$bot->user->invite($email);

To change cookies storage path you can use this method:

$bot->getHttpClient()->setCookiesPath($customPath);

from php-pinterest-bot.

rajenpal033 avatar rajenpal033 commented on July 25, 2024

Thanks @seregazhuk

from php-pinterest-bot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.