You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
486 B
PHTML
19 lines
486 B
PHTML
6 years ago
|
<?php
|
||
|
class User
|
||
|
{
|
||
|
public static function getUserInfo($accessToken, $code)
|
||
|
{
|
||
|
$response = Http::get("/user/getuserinfo",
|
||
|
array("access_token" => $accessToken, "code" => $code));
|
||
|
return json_encode($response);
|
||
|
}
|
||
|
|
||
|
|
||
|
public static function simplelist($accessToken,$deptId){
|
||
|
$response = Http::get("/user/simplelist",
|
||
|
array("access_token" => $accessToken,"department_id"=>$deptId));
|
||
|
return $response->userlist;
|
||
|
|
||
|
}
|
||
|
}
|