Tên miền
GET https://dwandev.com/api/domain-names/
curl --request GET \
--url 'https://dwandev.com/api/domain-names/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://dwandev.com/api/domain-names/' \
--header 'Authorization: Bearer {api_key}' \
Tham số | Chi tiết | Mô tả |
---|---|---|
page | Tùy chọn Số nguyên | Số trang mà bạn muốn lấy kết quả. Mặc định là 1 . |
results_per_page | Tùy chọn Số nguyên | Số lượng kết quả bạn muốn trên mỗi trang. Giá trị cho phép là: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Mặc định là 25 . |
{
"data": [
{
"id": 1,
"project_id": 0,
"name": "AltumCode.Com",
"target": "altumcode.com",
"whois": {
"start_datetime": "2019-12-15 18:03:36",
"updated_datetime": "2020-05-24 15:37:15",
"end_datetime": "2022-12-15 18:03:36",
"registrar": "NAMECHEAP INC",
"nameservers": [
"ns1.digitalocean.com",
"ns2.digitalocean.com",
"ns3.digitalocean.com"
]
},
"whois_notifications": null,
"ssl": {
"organization": "Let's Encrypt",
"common_name": "R3",
"start_datetime": "2021-06-05 14:40:13",
"end_datetime": "2021-09-03 14:40:13"
},
"ssl_notifications": null,
"total_checks": 25,
"last_check_datetime": "2021-07-01 14:42:14",
"next_check_datetime": "2021-07-04 14:42:15",
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-04-12 06:37:35"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://dwandev.com/api/domain-names?&page=1",
"last": "https://dwandev.com/api/domain-names?&page=1",
"next": null,
"prev": null,
"self": "https://dwandev.com/api/domain-names?&page=1"
}
}
GET https://dwandev.com/api/domain-names/{domain_name_id}
curl --request GET \
--url 'https://dwandev.com/api/domain-names/{domain_name_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://dwandev.com/api/domain-names/{domain_name_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"project_id": 0,
"name": "AltumCode.Com",
"target": "altumcode.com",
"whois": {
"start_datetime": "2019-12-15 18:03:36",
"updated_datetime": "2020-05-24 15:37:15",
"end_datetime": "2022-12-15 18:03:36",
"registrar": "NAMECHEAP INC",
"nameservers": [
"ns1.digitalocean.com",
"ns2.digitalocean.com",
"ns3.digitalocean.com"
]
},
"whois_notifications": null,
"ssl": {
"organization": "Let's Encrypt",
"common_name": "R3",
"start_datetime": "2021-06-05 14:40:13",
"end_datetime": "2021-09-03 14:40:13"
},
"ssl_notifications": null,
"total_checks": 25,
"last_check_datetime": "2021-07-01 14:42:14",
"next_check_datetime": "2021-07-04 14:42:15",
"is_enabled": true,
"last_datetime": null,
"datetime": "2025-04-12 06:37:35"
}
}
POST https://dwandev.com/api/domain-names
Tham số | Chi tiết | Mô tả |
---|---|---|
name | Bắt buộc Chuỗi | - |
target | Bắt buộc Chuỗi | - |
project_id | Tùy chọn Số nguyên | - |
whois_notifications | Tùy chọn Mảng | ID trình xử lý thông báo |
whois_notifications_timing | Tùy chọn Số nguyên | Giá trị cho phép: 1 , 2 , 3 , 7 , 14 , 30 , 60 (ngày) |
ssl_notifications | Tùy chọn Mảng | ID trình xử lý thông báo |
ssl_notifications_timing | Tùy chọn Số nguyên | Giá trị cho phép: 1 , 2 , 3 , 7 , 14 , 30 , 60 (ngày) |
is_enabled | Tùy chọn Boolean | - |
curl --request POST \
--url 'https://dwandev.com/api/domain-names' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'target=example.com' \
--url 'https://dwandev.com/api/domain-names' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'target=example.com' \
{
"data": {
"id": 1
}
}
POST https://dwandev.com/api/domain-names/{domain_name_id}
Tham số | Chi tiết | Mô tả |
---|---|---|
name | Tùy chọn Chuỗi | - |
target | Tùy chọn Chuỗi | - |
project_id | Tùy chọn Số nguyên | - |
whois_notifications | Tùy chọn Mảng | ID trình xử lý thông báo |
whois_notifications_timing | Tùy chọn Số nguyên | Giá trị cho phép: 1 , 2 , 3 , 7 , 14 , 30 , 60 (ngày) |
ssl_notifications | Tùy chọn Mảng | ID trình xử lý thông báo |
ssl_notifications_timing | Tùy chọn Số nguyên | Giá trị cho phép: 1 , 2 , 3 , 7 , 14 , 30 , 60 (ngày) |
is_enabled | Tùy chọn Boolean | - |
curl --request POST \
--url 'https://dwandev.com/api/domain-names/{domain_name_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--url 'https://dwandev.com/api/domain-names/{domain_name_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
{
"data": {
"id": 1
}
}
DELETE https://dwandev.com/api/domain-names/{domain_name_id}
curl --request DELETE \
--url 'https://dwandev.com/api/domain-names/{domain_name_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://dwandev.com/api/domain-names/{domain_name_id}' \
--header 'Authorization: Bearer {api_key}' \