Request
| Basic Information | |
|---|---|
| HTTP URL | https://api.dingtalk.io/topapi/attendance/group/wifis/query |
| HTTP Method | POST |
| Supported app types | appType-Internal app |
| Required permissions | permission-qyapi_attendance_group_read-Attendance group query permission |
Query Parameters
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| access_token | String | Yes | 4c9ebd2b1534xxxx | The App credential used to call this API. Obtain it by calling the Get the access_token of an Internal App API. |
Request Body
| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| cursor | String | No | 0151E022xxxx | The last ID of the previous batch. Empty by default. |
| size | Number | Yes | 50 | The page size. |
| op_userid | String | No | user01 | The user ID of the operator. |
| group_key | String | Yes | 015xxxx | The attendance group ID. Note If your attendance group identifier is group_id, call the Convert groupId to groupKey API to convert group_id to group_key. |
Request Example
curl -X POST "https://api.dingtalk.io/topapi/attendance/group/wifis/query" \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'access_token=698cxxxx9b13' \
-d 'cursor=0151E0xxxx17E876' \
-d 'group_key=0151Exxxx17E876' \
-d 'op_userid=123456' \
-d 'size=50'
DingTalkClient client = new DefaultDingTalkClient("https://api.dingtalk.io/topapi/attendance/group/wifis/query");
OapiAttendanceGroupWifisQueryRequest req = new OapiAttendanceGroupWifisQueryRequest();
req.setCursor("0151E022xxxx");
req.setSize(50L);
req.setOpUserid("user01");
req.setGroupKey("015xxxx");
OapiAttendanceGroupWifisQueryResponse rsp = client.execute(req, access_token);
System.out.println(rsp.getBody());
import dingtalk.api
req=dingtalk.api.OapiAttendanceGroupWifisQueryRequest("https://api.dingtalk.io/topapi/attendance/group/wifis/query")
req.cursor="0151E0xxxx917E876"
req.size=50
req.op_userid="123456"
req.group_key="0151E0xxxx917E876"
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 OapiAttendanceGroupWifisQueryRequest;
$req->setCursor("0151E0xxxxE876");
$req->setSize("50");
$req->setOpUserid("123456");
$req->setGroupKey("0151E02xxxx7E876");
$resp = $c->execute($req, $access_token, "https://api.dingtalk.io/topapi/attendance/group/wifis/query");
IDingTalkClient client = new DefaultDingTalkClient("https://api.dingtalk.io/topapi/attendance/group/wifis/query");
OapiAttendanceGroupWifisQueryRequest req = new OapiAttendanceGroupWifisQueryRequest();
req.Cursor = "0151E022xxxx7E876";
req.Size = 50L;
req.OpUserid = "123456";
req.GroupKey = "0151E02xxxxA917E876";
OapiAttendanceGroupWifisQueryResponse rsp = client.Execute(req, access_token);
Console.WriteLine(rsp.Body);
Response
Response Body
| Name | Type | Example | Description |
|---|---|---|---|
| result | DingOpenResult | The returned result. | |
| result | Result | The Wi-Fi list query result. | |
| wifi_list | Wifi[] | The Wi-Fi list. | |
| mac_addr | String | 54:8D:xx:xx:xx:73 | The MAC address. |
| ssid | String | office-wifi | The Wi-Fi name. |
| wifi_key | String | E4CB0xxxx | The Wi-Fi key. |
| has_more | Boolean | true | Whether more data exists. - true: Yes - false: No |
| errcode | Number | 0 | The return code. |
| errmsg | String | ok | The description of the return code. |
| success | Boolean | true | Whether the call succeeded. - true: Success - false: Failed |
| request_id | String | 155qyie8nxoqu | The request ID. |
Response Body Example
{
"result": {
"errcode": 0,
"errmsg":"ok",
"result": {
"has_more": false,
"wifi_list": [
{
"mac_addr": "54:8D:xx:xx:xx:73",
"ssid": "office-wifi",
"wifi_key": "E4CB0xxxx"
}
]
},
"success": true
},
"request_id": "155qyie8nxoqu"
}