Request
| Basic Information | |
|---|---|
| HTTP URL | https://api.dingtalk.io/topapi/attendance/group/minimalism/list |
| HTTP Method | POST |
| Supported app types | appType-Internal app appType-Third-party enterprise app |
| Permissions | permission-qyapi_attendance_group_read-Attendance group read permission |
Query Parameters
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| access_token | String | Yes | bE74xxxx | The app credential used to call this API. - For an Internal app, get it by calling Get the access_token of an Internal App. - For a Third-party enterprise app, get it by calling the API for getting the access_token of a third-party organization. |
Request Body
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| op_user_id | String | Yes | user123 | The userId of the operator. |
| cursor | Number | No | 222 | The pagination cursor. Get it from the result of the previous request. If omitted, the query starts from the first item. |
Request Example
curl -X POST "https://api.dingtalk.io/topapi/attendance/group/minimalism/list" \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'access_token=6dd4xxxx94138' \
-d 'cursor=222' \
-d 'op_user_id=dd_dd'
DingTalkClient client = new DefaultDingTalkClient("https://api.dingtalk.io/topapi/attendance/group/minimalism/list");
OapiAttendanceGroupMinimalismListRequest req = new OapiAttendanceGroupMinimalismListRequest();
req.setOpUserId("manager4220");
req.setCursor(0L);
OapiAttendanceGroupMinimalismListResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());
import dingtalk.api
req=dingtalk.api.OapiAttendanceGroupMinimalismListRequest("https://api.dingtalk.io/topapi/attendance/group/minimalism/list")
req.op_user_id="dd_dd"
req.cursor=222
try:
resp= req.getResponse(access_token)
print(resp)
except Exception,e:
print(e)
include "TopSdk.php";
date_default_timezone_set('Asia/Shanghai');
$c = new DingTalkClient(DingTalkConstant::$CALL_TYPE_OAPI, DingTalkConstant::$METHOD_POST , DingTalkConstant::$FORMAT_JSON);
$req = new OapiAttendanceGroupMinimalismListRequest;
$req->setOpUserId("dd_dd");
$req->setCursor("222");
$resp = $c->execute($req, $access_token, "https://api.dingtalk.io/topapi/attendance/group/minimalism/list");
IDingTalkClient client = new DefaultDingTalkClient("https://api.dingtalk.io/topapi/attendance/group/minimalism/list");
OapiAttendanceGroupMinimalismListRequest req = new OapiAttendanceGroupMinimalismListRequest();
req.OpUserId = "dd_dd";
req.Cursor = 222L;
OapiAttendanceGroupMinimalismListResponse rsp = client.Execute(req, access_token);
Console.WriteLine(rsp.Body);
Response
Response Body
| Name | Type | Example | Description |
|---|---|---|---|
| result | PageResult | demo | The returned result. |
| has_more | Boolean | false | Indicates whether more data is available. - true: Yes - false: No |
| cursor | Number | 685935028 | The cursor position. |
| result | TopMinimalismGroupVo[] | The attendance information. | |
| name | String | Attendance | The attendance group name. |
| id | Number | 677765054 | The attendance group ID. |
| success | Boolean | true | Indicates whether the request succeeded. - true: Success - false: Failed |
| errcode | Number | 0 | The return code. |
| errmsg | String | ok | The error message description. |
| request_id | String | wv9973jntam | The request ID. |
Response Body Example
{
"errcode": 0,
"result": {
"cursor": 685935028,
"has_more": false,
"result": [
{
"id": 677765054,
"name": "Weekend Overtime"
},
{
"id": 685935028,
"name": "Attendance"
}
]
},
"success": true,
"request_id": "wv9973jntamw"
}