for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the dingtalk.
* User: Ilham Tahir <[email protected]>
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Aplisin\DingTalk\Department;
use Aplisin\DingTalk\Kernel\BaseClient;
class Client extends BaseClient
{
* @param int $id
* @return \Aplisin\DingTalk\Kernel\Http\Response|\Aplisin\DingTalk\Kernel\Support\Collection|array|mixed|\Psr\Http\Message\ResponseInterface
* @throws \GuzzleHttp\Exception\GuzzleException
public function listIds($id = 1)
return $this->httpGet('/department/list_ids', compact('id'));
}
* @param bool $fetchChild
* @param string $lang
public function list($id = 1, $fetchChild = false, $lang = 'zh_CN')
$params = [
'id' => $id,
'fetch_child' => $fetchChild,
'lang' => $lang
];
return $this->httpGet('/department/list', $params);