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\Schedule;
use EasyDingTalk\Kernel\BaseClient;
class Client extends BaseClient
{
/**
* 发起待办
* @param array $params
* @return mixed
public function create($params)
return $this->client->postJson('topapi/workrecord/add', $params);
}
* 更新待办
* @param string $userId
* @param string $recordId
public function update($userId, $recordId)
return $this->client->postJson('topapi/workrecord/add', ['userid' => $userId, 'record_id' => $recordId]);
* 获取用户待办事项
* @param int $status
* @param int $offset
* @param int $limit
public function listByUserId($userId, $status, $offset, $limit)
return $this->client->postJson('topapi/workrecord/getbyuserid', compact('status', 'offset', 'limit') + ['userid' => $userId]);