Files
EasySoft-ZenTaoPMS/test/api/users/getlist.php
2021-10-19 15:46:57 +08:00

18 lines
436 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!use/bin/env php
<?php
include dirname(dirname(dirname(__FILE__))) . '/lib/init.php';
/**
title=测试获取用户列表;
cid=1
pid=1
获取用户列表判断ID为1和2的真实姓名 >> admin,测试1
*/
global $token;
$list = $rest->get('/users?page=1&limit=2&order=id_asc', array('token' => $token->token));
r($list->body->users) && p('realname') && e('admin,测试1'); //获取用户列表判断ID为1和2的真实姓名