Total Complexity | 3 |
Total Lines | 52 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class Topics extends FollowableProvider |
||
11 | { |
||
12 | use HasRelatedTopics; |
||
13 | |||
14 | protected $followUrl = UrlBuilder::RESOURCE_FOLLOW_INTEREST; |
||
15 | protected $unFollowUrl = UrlBuilder::RESOURCE_UNFOLLOW_INTEREST; |
||
16 | |||
17 | protected $entityIdName = 'interest_id'; |
||
18 | |||
19 | /** |
||
20 | * Get category info |
||
21 | * |
||
22 | * @param string $topic |
||
23 | * @return array|bool |
||
24 | */ |
||
25 | public function info($topic) |
||
28 | } |
||
29 | |||
30 | /** |
||
31 | * Returns a feed of pins. |
||
32 | * |
||
33 | * @param string $interest |
||
34 | * @param int $limit |
||
35 | * @return Pagination |
||
36 | */ |
||
37 | public function pins($interest, $limit = Pagination::DEFAULT_LIMIT) |
||
45 | } |
||
46 | |||
47 | /** |
||
48 | * Returns an array of trending topics from http://pinterest.com/discover page. Then |
||
49 | * you can use an id of each topic to get trending pins for this topic with |
||
50 | * $bot->pins->explore() method. |
||
51 | * |
||
52 | * @return array |
||
53 | */ |
||
54 | public function explore() |
||
64 |