域名

备注
专家级
API 密钥应作为持有者令牌在请求的授权标头中发送。 输入您的API Key.
列表

接口端点:

GET
https://tz8.in/index.php/api/v1/domains

请求示例:

curl --location --request GET 'https://tz8.in/index.php/api/v1/domains' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
参数
类型
描述
search
可选的 string
搜索查询。
search_by
可选的 string
搜索. 可能的值为::值。 默认主题: name.
sort_by
可选的 string
排序方式. 可能的值为::值。 默认主题: id.
sort
可选的 string
排序. 可能的值为::值。 默认主题: desc.
per_page
可选的 int
每页结果. 可能的值为::值。 默认主题: 10.
显示

接口端点:

GET
https://tz8.in/index.php/api/v1/domains/{id}

请求示例:

curl --location --request GET 'https://tz8.in/index.php/api/v1/domains/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
商店

接口端点:

POST
https://tz8.in/index.php/api/v1/domains

请求示例:

curl --location --request POST 'https://tz8.in/index.php/api/v1/domains' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}'
参数
类型
描述
name
必需 string
域名。
index_page
可选的 string
要重定向到的索引页。
not_found_page
可选的 string
要重定向到的 404 页面。
更新

接口端点:

PUT PATCH
https://tz8.in/index.php/api/v1/domains/{id}

请求示例:

curl --location --request PUT 'https://tz8.in/index.php/api/v1/domains/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
参数
类型
描述
index_page
可选的 string
要重定向到的索引页。
not_found_page
可选的 string
要重定向到的 404 页面。
删除

接口端点:

DELETE
https://tz8.in/index.php/api/v1/domains/{id}

请求示例:

curl --location --request DELETE 'https://tz8.in/index.php/api/v1/domains/{id}' \
--header 'Authorization: Bearer {api_key}'