for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the mingyoung/dingtalk.
*
* (c) 张铭阳 <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace EasyDingTalk\Microapp;
use EasyDingTalk\Kernel\BaseClient;
class Client extends BaseClient
{
/**
* 获取应用列表
* @return mixed
public function list()
return $this->client->postJson('microapp/list');
}
* 获取员工可见的应用列表
* @param string $userId
public function listByUserId($userId)
return $this->client->get('microapp/list_by_userid', compact('userId'));
* 获取应用的可见范围
* @param int $agentId
public function visibleScopes($agentId)
return $this->client->get('microapp/visible_scopes', compact('agentId'));
* 设置应用的可见范围
* @param bool $isHidden
* @param array $userIds
* @param array $departmentIds
public function setVisibleScopes($agentId, $isHidden, $userIds, $departmentIds)
return $this->client->postJson('microapp/set_visible_scopes', compact('agentId', 'isHidden') + ['userVisibleScopes' => $userIds, 'deptVisibleScopes' => $departmentIds]);