查询未被使用的分机帐号
curl --request POST \
--url https://sg.sobot.io/exts/idle/search \
--header 'Content-Type: application/json' \
--data '"<unknown>"'import requests
url = "https://sg.sobot.io/exts/idle/search"
payload = "<unknown>"
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify('<unknown>')
};
fetch('https://sg.sobot.io/exts/idle/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sg.sobot.io/exts/idle/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode('<unknown>'),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sg.sobot.io/exts/idle/search"
payload := strings.NewReader("\"<unknown>\"")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sg.sobot.io/exts/idle/search")
.header("Content-Type", "application/json")
.body("\"<unknown>\"")
.asString();require 'uri'
require 'net/http'
url = URI("https://sg.sobot.io/exts/idle/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "\"<unknown>\""
response = http.request(request)
puts response.read_body{
"apiVersion": "",
"status": "",
"code": 0,
"message": "",
"reason": "",
"kind": "",
"metaData": {
"creatorId": "",
"creationTime": 0,
"updateUserId": "",
"updatedTime": 0
},
"data": {
"creatorId": "",
"creationTime": 0,
"updateUserId": "",
"updatedTime": 0,
"pageSize": 0,
"currPage": 0,
"orderByName": "",
"orderByASC": false,
"partition": false,
"enabled": 0,
"extensions": {
"": null
},
"companyId": "",
"id": "",
"agentID": "",
"agentName": "",
"agentNick": "",
"agentEmail": "",
"phone": "",
"currentPhoneType": "",
"telephone": "",
"qq": "",
"remarks": "",
"depart": "",
"departId": "",
"role": "",
"roleId": "",
"agentStatus": 0,
"loginStatus": 0,
"callStatus": 0,
"workStatus": 0,
"contact": "",
"wrapUpTime": 0,
"companyWrapUpTime": 0,
"wrapUpType": 0,
"lastLoginTime": 0,
"queueName": "",
"queueUuid": "",
"queueID": "",
"extId": "",
"ext": "",
"extType": "",
"loginStatusList": "",
"timeZoneId": "",
"timeZone": "",
"phoneTypes": [
{
"phoneType": "",
"isDefault": false,
"defaultPhoneType": false
}
],
"arrayDepartIds": [
""
],
"keyWord": ""
},
"retMsg": "",
"retCode": ""
}API Reference
查询未被使用的分机帐号
查询未被使用的分机帐号
POST
/
exts
/
idle
/
search
查询未被使用的分机帐号
curl --request POST \
--url https://sg.sobot.io/exts/idle/search \
--header 'Content-Type: application/json' \
--data '"<unknown>"'import requests
url = "https://sg.sobot.io/exts/idle/search"
payload = "<unknown>"
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify('<unknown>')
};
fetch('https://sg.sobot.io/exts/idle/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sg.sobot.io/exts/idle/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode('<unknown>'),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sg.sobot.io/exts/idle/search"
payload := strings.NewReader("\"<unknown>\"")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://sg.sobot.io/exts/idle/search")
.header("Content-Type", "application/json")
.body("\"<unknown>\"")
.asString();require 'uri'
require 'net/http'
url = URI("https://sg.sobot.io/exts/idle/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "\"<unknown>\""
response = http.request(request)
puts response.read_body{
"apiVersion": "",
"status": "",
"code": 0,
"message": "",
"reason": "",
"kind": "",
"metaData": {
"creatorId": "",
"creationTime": 0,
"updateUserId": "",
"updatedTime": 0
},
"data": {
"creatorId": "",
"creationTime": 0,
"updateUserId": "",
"updatedTime": 0,
"pageSize": 0,
"currPage": 0,
"orderByName": "",
"orderByASC": false,
"partition": false,
"enabled": 0,
"extensions": {
"": null
},
"companyId": "",
"id": "",
"agentID": "",
"agentName": "",
"agentNick": "",
"agentEmail": "",
"phone": "",
"currentPhoneType": "",
"telephone": "",
"qq": "",
"remarks": "",
"depart": "",
"departId": "",
"role": "",
"roleId": "",
"agentStatus": 0,
"loginStatus": 0,
"callStatus": 0,
"workStatus": 0,
"contact": "",
"wrapUpTime": 0,
"companyWrapUpTime": 0,
"wrapUpType": 0,
"lastLoginTime": 0,
"queueName": "",
"queueUuid": "",
"queueID": "",
"extId": "",
"ext": "",
"extType": "",
"loginStatusList": "",
"timeZoneId": "",
"timeZone": "",
"phoneTypes": [
{
"phoneType": "",
"isDefault": false,
"defaultPhoneType": false
}
],
"arrayDepartIds": [
""
],
"keyWord": ""
},
"retMsg": "",
"retCode": ""
}⌘I