Get a list of main categories. Required bot to be logged in:
$categories = $bot->interests->main();
Get category info by name (can be taken from main()):
$info = $bot->interests->info("gifts");
// gifts - can be any other string. Actualy it is a key field from one of the results returned by main() method.
Get related topics for interest:
$topics = $bot->interests->getRelatedTopics('videos');
Get pins for specific interest (returns Pagination object):
foreach ($bot->interests->pins('videos') as $pin) {
// ...
}
Each interest has a list of related topics.
Follow/unfollow a topic by name:
$bot->topics->follow('content-marketing');
$bot->topics->unFollow('content-marketing');
Get a topic info:
$info = $bot->topics->info('content-marketing');
Get pins for a specific topic (returns Pagination object):
foreach ($bot->topics->pins('content-marketing') as $pin) {
// ...
}
Get related topics for topic (similar as related topics for interest):
$topics = $bot->topics->getRelatedTopics('content-marketing');
Get trending topics from http://pinterest.com/discover page. Then you can use an id of each topic
to get trending pins for this topic with $bot->pins->explore()
method:
$trendingTopics = $bot->topics->explore();
$firstTopicId = $trendingTopics[0]['id'];
$pins = $bot->pins->explore($firstTopicId)->toArray();