1 | <?php |
||
16 | class Users extends Endpoint { |
||
17 | |||
18 | /** |
||
19 | * Get the current user |
||
20 | * |
||
21 | * @access public |
||
22 | * @param array $data |
||
23 | * @throws Exceptions/PinterestExceptions |
||
24 | * @return User |
||
25 | */ |
||
26 | 1 | public function me(array $data = []) |
|
31 | |||
32 | /** |
||
33 | * Get the provided user |
||
34 | * |
||
35 | * @access public |
||
36 | * @param string $username |
||
37 | * @param array $data |
||
38 | * @throws Exceptions/PinterestExceptions |
||
39 | * @return User |
||
40 | */ |
||
41 | 2 | public function find($username, array $data = []) |
|
46 | |||
47 | /** |
||
48 | * Get the authenticated user's pins |
||
49 | * |
||
50 | * @access public |
||
51 | * @param array $data |
||
52 | * @throws Exceptions/PinterestExceptions |
||
53 | * @return Collection |
||
54 | */ |
||
55 | 2 | public function getMePins(array $data = []) |
|
60 | |||
61 | /** |
||
62 | * Search in the user's pins |
||
63 | * |
||
64 | * @param string $query |
||
65 | * @param array $data |
||
66 | * @throws Exceptions/PinterestExceptions |
||
67 | * @return Collection |
||
68 | */ |
||
69 | 1 | public function searchMePins($query, array $data = []) |
|
75 | |||
76 | /** |
||
77 | * Search in the user's boards |
||
78 | * |
||
79 | * @param string $query |
||
80 | * @param array $data |
||
81 | * @throws Exceptions/PinterestExceptions |
||
82 | * @return Collection |
||
83 | */ |
||
84 | 1 | public function searchMeBoards($query, array $data = []) |
|
91 | |||
92 | /** |
||
93 | * Get the authenticated user's boards |
||
94 | * |
||
95 | * @access public |
||
96 | * @param array $data |
||
97 | * @throws Exceptions/PinterestExceptions |
||
98 | * @return Collection |
||
99 | */ |
||
100 | 1 | public function getMeBoards(array $data = []) |
|
105 | |||
106 | /** |
||
107 | * Get the authenticated user's likes |
||
108 | * |
||
109 | * @access public |
||
110 | * @param array $data |
||
111 | * @throws Exceptions/PinterestExceptions |
||
112 | * @return Collection |
||
113 | */ |
||
114 | 1 | public function getMeLikes(array $data = []) |
|
119 | |||
120 | /** |
||
121 | * Get the authenticated user's followers |
||
122 | * |
||
123 | * @access public |
||
124 | * @param array $data |
||
125 | * @throws Exceptions\PinterestException |
||
126 | * @return Collection |
||
127 | */ |
||
128 | 1 | public function getMeFollowers(array $data = []) |
|
133 | |||
134 | } |
||
135 |