像素

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

接口端点:

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

请求示例:

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

接口端点:

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

请求示例:

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

接口端点:

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

请求示例:

curl --location --request POST 'https://tz8.in/index.php/api/v1/pixels' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'name={name}' \
--data-urlencode 'type={type}' \
--data-urlencode 'value={value}'
参数
类型
描述
name
必需 string
像素名称。
type
必需 string
像素类型。 可能的值为::值。
value
必需 string
像素 ID 值。
更新

接口端点:

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

请求示例:

curl --location --request PUT 'https://tz8.in/index.php/api/v1/pixels/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
参数
类型
描述
name
可选的 string
像素名称。
type
可选的 string
像素类型。 可能的值为::值。
value
可选的 string
像素 ID 值。
删除

接口端点:

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

请求示例:

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