4

应用管理 | EasyDingTalk

 2 years ago
source link: https://easydingtalk.github.io/microapp.html#%E8%8E%B7%E5%8F%96%E5%91%98%E5%B7%A5%E5%8F%AF%E8%A7%81%E7%9A%84%E5%BA%94%E7%94%A8%E5%88%97%E8%A1%A8
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

# 应用管理

# 获取应用列表

$app->microapp->list();

# 获取员工可见的应用列表

$app->microapp->listByUserId($userId);

# 获取应用的可见范围

$app->microapp->getVisibility($agentId);

# 设置应用的可见范围

$params = [
    'agentId' => 16691682,
    'isHidden' => false,
    'deptVisibleScopes' => [1, 2],
    'userVisibleScopes' => ['userId1', 'userId2'],
];

$app->microapp->setVisibility($params);

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK