#!/usr/bin/env php > sgm0422@163.com */ global $token; $insert = array( 'account' => 'sgm', 'password' => 'qaz19950422', 'realname' => '孙广明', 'email' => 'sgm0422@163.com', ); $user = $rest->post('/users', $insert, array('token' => $token->token)); r($user) && c(201) && p('email') && e('sgm0422@163.com'); // 插入一个新用户,获取邮箱