1 | <?php |
||
15 | class Pinners extends Provider |
||
16 | { |
||
17 | use SearchTrait, FollowTrait, FollowersTrait; |
||
18 | |||
19 | /** |
||
20 | * Get user info |
||
21 | * If username param is not specified, will |
||
22 | * return info for logged user |
||
23 | * |
||
24 | * @param string $username |
||
25 | * @return null|array |
||
26 | */ |
||
27 | public function info($username) |
||
34 | |||
35 | /** |
||
36 | * Get pinner followers |
||
37 | * |
||
38 | * @param string $username |
||
39 | * @param int $batchesLimit |
||
40 | * @return Iterator |
||
41 | */ |
||
42 | public function followers($username, $batchesLimit = 0) |
||
48 | |||
49 | /** |
||
50 | * Get pinner following other pinners |
||
51 | * |
||
52 | * @param string $username |
||
53 | * @param int $batchesLimit |
||
54 | * @return Iterator |
||
55 | */ |
||
56 | public function following($username, $batchesLimit = 0) |
||
62 | |||
63 | /** |
||
64 | * Get pinner pins |
||
65 | * |
||
66 | * @param string $username |
||
67 | * @param int $batchesLimit |
||
68 | * @return Iterator |
||
69 | */ |
||
70 | public function pins($username, $batchesLimit = 0) |
||
76 | |||
77 | /** |
||
78 | * Login as pinner |
||
79 | * |
||
80 | * @param string $username |
||
81 | * @param string $password |
||
82 | * @return bool |
||
83 | */ |
||
84 | public function login($username, $password) |
||
102 | |||
103 | /** |
||
104 | * Validates password and login |
||
105 | * @param string $username |
||
106 | * @param string $password |
||
107 | */ |
||
108 | protected function _checkCredentials($username, $password) |
||
114 | |||
115 | /** |
||
116 | * Search scope |
||
117 | * |
||
118 | * @return string |
||
119 | */ |
||
120 | protected function getScope() |
||
124 | |||
125 | protected function getEntityIdName() |
||
129 | |||
130 | /** |
||
131 | * Follow resource |
||
132 | * |
||
133 | * @return string |
||
134 | */ |
||
135 | protected function getFollowUrl() |
||
139 | |||
140 | /** |
||
141 | * UnFollow resource |
||
142 | * @return string |
||
143 | */ |
||
144 | protected function getUnfFollowUrl() |
||
148 | |||
149 | /** |
||
150 | * @param string $username |
||
151 | * @param string $url |
||
152 | * @param string $sourceUrl |
||
153 | * @param integer $batchesLimit |
||
154 | * @return Iterator |
||
155 | */ |
||
156 | protected function getPaginatedData($username, $url, $sourceUrl, $batchesLimit) |
||
166 | } |
||
167 |