链接

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

接口端点:

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

请求示例:

curl --location --request GET 'https://tz8.in/index.php/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
参数
类型
描述
search
可选的 string
搜索查询。
search_by
可选的 string
搜索. 可能的值为::值。 默认主题: title.
status
可选的 integer
按状态筛选。 可能的值为::值。 默认主题: 0.
space_id
可选的 integer
按空间 ID 筛选。
domain_id
可选的 integer
按域 ID 筛选。
pixel_id
可选的 integer
按像素 ID 过滤。
sort_by
可选的 string
排序方式. 可能的值为::值。 默认主题: id.
sort
可选的 string
排序. 可能的值为::值。 默认主题: desc.
per_page
可选的 int
每页结果. 可能的值为::值。 默认主题: 10.
显示

接口端点:

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

请求示例:

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

接口端点:

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

请求示例:

curl --location --request POST 'https://tz8.in/index.php/api/v1/links' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}' \
--data-urlencode 'domain={id}'
参数
类型
描述
url
必需 string
要缩短的链接。
domain_id
必需 integer
要保存链接的域 ID。
alias
可选的 string
链接别名。
password
可选的 string
链接密码。
space_id
可选的 integer
要保存链接的空间 ID。
pixel_ids
可选的 array
The pixel IDs to be integrated in the link.
disabled
可选的 integer
链接是否被禁用。 可能的值为::值。 默认主题: 0.
privacy
可选的 integer
链接统计信息是否公开。 可能的值为::值。 默认主题: 0.
privacy_password
可选的 string
统计信息页面的密码。 仅适用于 :字段设置为 :值。
expiration_url
可选的 string
链接过期后将重定向用户的链接。
expiration_date
可选的 string
链接到期日期,格式为 :格式。
expiration_time
可选的 string
链接过期时间,格式为 :格式。
expiration_clicks
可选的 integer
链接过期的点击次数。
target_type
可选的 integer
定位类型。 可能的值为::值。
country[index][key]
可选的 string
目标国家/地区的代码。 代码必须采用:标准标准。
country[index][value]
可选的 string
用户将被重定向到的链接。
platform[index][key]
可选的 string
目标平台的名称。 可能的值为::值。
platform[index][value]
可选的 string
用户将被重定向到的链接。
language[index][key]
可选的 string
目标语言的代码。 代码必须采用:标准标准。
language[index][value]
可选的 string
用户将被重定向到的链接。
rotation[index][value]
可选的 string
用户将被重定向到的链接。
更新

接口端点:

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

请求示例:

curl --location --request PUT 'https://tz8.in/index.php/api/v1/links/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
参数
类型
描述
url
可选的 string
要缩短的链接。
alias
可选的 string
链接别名。
password
可选的 string
链接密码。
space_id
可选的 integer
要保存链接的空间 ID。
pixel_ids
可选的 array
The pixel IDs to be integrated in the link.
disabled
可选的 integer
链接是否被禁用。 可能的值为::值。
privacy
可选的 integer
链接统计信息是否公开。 可能的值为::值。
privacy_password
可选的 string
统计信息页面的密码。 仅适用于 :字段设置为 :值。
expiration_url
可选的 string
链接过期后将重定向用户的链接。
expiration_date
可选的 string
链接到期日期,格式为 :格式。
expiration_time
可选的 string
链接过期时间,格式为 :格式。
expiration_clicks
可选的 integer
链接过期的点击次数。
target_type
可选的 integer
定位类型。 可能的值为::值。
country[index][key]
可选的 string
目标国家/地区的代码。 代码必须采用:标准标准。
country[index][value]
可选的 string
用户将被重定向到的链接。
platform[index][key]
可选的 string
目标平台的名称。 可能的值为::值。
platform[index][value]
可选的 string
用户将被重定向到的链接。
language[index][key]
可选的 string
目标语言的代码。 代码必须采用:标准标准。
language[index][value]
可选的 string
用户将被重定向到的链接。
rotation[index][value]
可选的 string
用户将被重定向到的链接。
删除

接口端点:

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

请求示例:

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