File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change 44
55class Users extends AbstractApi
66{
7- public function all ($ active = null )
7+ public function all ($ active = null , $ page = 1 , $ per_page = self :: PER_PAGE )
88 {
9- if (!is_null ($ active )) {
10- return $ this ->get ('users ' , array (
11- 'active ' => $ active
12- ));
13- }
14-
15- return $ this ->get ('users ' );
9+ return $ this ->get ('users ' , array (
10+ 'active ' => $ active ,
11+ 'page ' => $ page ,
12+ 'per_page ' => $ per_page
13+ ));
1614 }
1715
18- public function search ($ query , $ active = null )
16+ public function search ($ query , $ active = null , $ page = 1 , $ per_page = self :: PER_PAGE )
1917 {
2018 return $ this ->get ('users ' , array (
2119 'search ' => $ query ,
22- 'active ' => $ active
20+ 'active ' => $ active ,
21+ 'page ' => $ page ,
22+ 'per_page ' => $ per_page
2323 ));
2424 }
2525
You can’t perform that action at this time.
0 commit comments