API 端点:
https://rank.fan/api/v1/reports
请求示例:
curl --location --request GET 'https://rank.fan/api/v1/reports' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
url
。 默认值:url
。project
result
good
, 尚可 的 decent
, 差 的 bad
。sort_by
id
, 生成日期 的 generated_at
, 网址 的 url
, 结果 的 result
。 默认值:id
。sort
desc
, 升序 的 asc
。 默认值:desc
。per_page
10
, 25
, 50
, 100
。 默认值:10
。API 端点:
https://rank.fan/api/v1/reports/{id}
请求示例:
curl --location --request GET 'https://rank.fan/api/v1/reports/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API 端点:
https://rank.fan/api/v1/reports
请求示例:
curl --location --request POST 'https://rank.fan/api/v1/reports' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
url
privacy
0
, 私有 的 1
, 密码 的 2
。 默认值:0
。password
privacy
set to 2
.API 端点:
https://rank.fan/api/v1/reports/{id}
请求示例:
curl --location --request PUT 'https://rank.fan/api/v1/reports/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
privacy
0
, 私有 的 1
, 密码 的 2
。password
privacy
set to 2
.results
0
, 是 的 1
。 默认值:0
。API 端点:
https://rank.fan/api/v1/reports/{id}
请求示例:
curl --location --request DELETE 'https://rank.fan/api/v1/reports/{id}' \ --header 'Authorization: Bearer {api_key}'