Skip to content

用户管理接口

Dong Chen edited this page Jun 23, 2016 · 2 revisions

相关Client

  • cdcchen\wechat\qy\UserClient

实例化Client

$client = new UserClient($accessToken);

二次验证,让成员关注成功。

Request

cdcchen\wechat\qy\contact\UserAuthSuccessRequest

Client

$data = $client->setUserAuthSuccess($id)

创建成员

Request

cdcchen\wechat\qy\contact\UserCreateRequest

Client

$data = $client->create(UserCreateRequest $request);

更新成员

Request

cdcchen\wechat\qy\contact\UserUpdateRequest

Client

$data = $client->update($id, UserUpdateRequest $request);

删除成员

Request

cdcchen\wechat\qy\contact\UserDeleteRequest

Client

$data = $client->delete($id);

批量删除成员

Request

cdcchen\wechat\qy\contact\UserBatchDeleteRequest

Client

$data = $client->batchDelete($users);

获取成员

Request

cdcchen\wechat\qy\contact\UserInfoRequest

Client

$data = $client->getInfo($id);

获取部门成员

Request

cdcchen\wechat\qy\contact\UserSimpleListRequest

Client

$data = $client->getSimpleList($departmentId, $status = null, $fetchChild = false);

获取部门成员(详情)

Request

cdcchen\wechat\qy\contact\UserDetailListRequest

Client

$data = $client->getDetailList($departmentId, $status = null, $fetchChild = false);