I'm working on a script that search pins from the provided keyword and comments on it.
I'm using this Pinterest PHP Bot by Sergey Zhuk for this purpose. This is the method that the developer has shared in the documentation but it doesn't seem to work for me.
$result = $bot->pins->comment($pinId, 'your comment');
It is my library. I've just tested and it works fine. Check if you use the latest version. Try to test comments with my test pin:
What is the output?
Then check if there are any errors, after you leave a comment:
It seems that you have used wrong ids.