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\Health;
use EasyDingTalk\Kernel\BaseClient;
class Client extends BaseClient
{
/**
* 获取用户钉钉运动开启状态
* @param string $userId
* @return mixed
public function status($userId)
return $this->client->postJson('topapi/health/stepinfo/getuserstatus', compact('userId'));
}
* 获取个人钉钉运动数据
* @param string $id
* @param string $dates
public function user($id, $dates)
return $this->client->postJson('topapi/health/stepinfo/list', ['object_id' => $id, 'stat_dates' => $dates]);
* 获取部门钉钉运动数据
public function department($id, $dates)
* 批量获取钉钉运动数据
* @param array $userIds
* @param string $date
public function list($userIds, $date)
return $this->client->postJson('topapi/health/stepinfo/listbyuserid', compact('userIds') + ['stat_date' => $date]);