笔记
专家级
API密钥应该作为请求的授权头中的承载令牌发送。 获取您的 API 密钥.
列表

API 端点:

GET
https://uu.uucc.cc/api/v1/domains

请求示例:

curl --location --request GET 'https://uu.uucc.cc/api/v1/domains' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
范围
类型
描述
search
可选 string
搜索查询。
search_by
可选 string
搜索方式. 可能的值是:名称name。 默认为:name
sort_by
可选 string
Sort by. 可能的值是:Date createdid, 名称name。 默认为:id
sort
可选 string
种类. 可能的值是:降序desc, 上升asc。 默认为:desc
per_page
可选 int
每页结果. 可能的值是:10, 25, 50, 100。 默认为:10
显示

API 端点:

GET
https://uu.uucc.cc/api/v1/domains/{id}

请求示例:

curl --location --request GET 'https://uu.uucc.cc/api/v1/domains/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
店铺

API 端点:

POST
https://uu.uucc.cc/api/v1/domains

请求示例:

curl --location --request POST 'https://uu.uucc.cc/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 页面。
更新

API 端点:

PUT PATCH
https://uu.uucc.cc/api/v1/domains/{id}

请求示例:

curl --location --request PUT 'https://uu.uucc.cc/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 页面。
删除

API 端点:

DELETE
https://uu.uucc.cc/api/v1/domains/{id}

请求示例:

curl --location --request DELETE 'https://uu.uucc.cc/api/v1/domains/{id}' \
--header 'Authorization: Bearer {api_key}'