网站

GET https://t.essnn.com/api/websites/
curl --request GET \
--url 'https://t.essnn.com/api/websites/' \
--header 'Authorization: Bearer {api_key}' \
参数 详细信息 描述
page 可选 整数 您想要结果的页码,默认为1
results_per_page 可选 整数 每页想要的结果数。允许的值为:10 , 25 , 50 , 100 , 250 , 500。默认为25。默认为s
{
    "data": [
        {
            "id": 1,
            "pixel_key": "1234567890123456",
            "name": "Localhost",
            "scheme": "https://",
            "host": "example.com",
            "path": "/",
            "tracking_type": "normal",
            "excluded_ips": "",
            "events_children_is_enabled": false,
            "sessions_replays_is_enabled": false,
            "email_reports_is_enabled": false,
            "email_reports_last_date": "2020-06-23 19:01:22",
            "is_enabled": true,
            "date": "2019-11-01 12:00:30"
        },
    ],
    "meta": {
        "page": 1,
        "results_per_page": 25,
        "total": 1,
        "total_pages": 1
    },
    "links": {
        "first": "https://t.essnn.com/api/websites?&page=1",
        "last": "https://t.essnn.com/api/websites?&page=1",
        "next": null,
        "prev": null,
        "self": "https://t.essnn.com/api/websites?&page=1"
    }
}
GET https://t.essnn.com/api/websites/{website_id}
curl --request GET \
--url 'https://t.essnn.com/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \
{
    "data": {
        "id": 1,
        "pixel_key": "1234567890123456",
        "name": "Localhost",
        "scheme": "https://",
        "host": "example.com",
        "path": "/",
        "tracking_type": "normal",
        "excluded_ips": "",
        "events_children_is_enabled": false,
        "sessions_replays_is_enabled": false,
        "email_reports_is_enabled": false,
        "email_reports_last_date": "2020-06-23 19:01:22",
        "is_enabled": true,
        "date": "2019-11-01 12:00:30"
    }
}
POST https://t.essnn.com/api/websites
参数 详细信息 描述
name 必需 字符串 -
scheme 可选 字符串 允许的值为:http://https://
host 必需 字符串 网站主机和路径。示例:https://example.com/path
tracking_type 可选 字符串 允许的值为:lightweightnormal
excluded_ips 可选 字符串 从跟踪中排除IP。输入逗号分隔的值。
events_children_is_enabled 可选 布尔值 跟踪访问者事件(鼠标点击、调整大小、滚动、表单提交)。允许的值为:01。仅在normal跟踪类型下可用。
sessions_replays_is_enabled 可选 布尔值 会话回放。允许的值为:01。仅在normal跟踪类型下可用。
email_reports_is_enabled 可选 布尔值 电子邮件报告。允许的值为:01
curl --request POST \
--url 'https://t.essnn.com/api/websites' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'host=website.com' \
--form 'name=Example' \
{
    "data": {
        "id": 1
    }
}
POST https://t.essnn.com/api/websites/{website_id}
参数 详细信息 描述
name 可选 字符串 -
scheme 可选 字符串 允许的值为:http://https://
host 可选 字符串 网站主机和路径。示例:https://example.com/path
excluded_ips 可选 字符串 从跟踪中排除IP。输入逗号分隔的值。
events_children_is_enabled 可选 布尔值 跟踪访问者事件(鼠标点击、调整大小、滚动、表单提交)。允许的值为:01。仅在normal跟踪类型下可用。
sessions_replays_is_enabled 可选 布尔值 会话回放。允许的值为:01。仅在normal跟踪类型下可用。
email_reports_is_enabled 可选 布尔值 电子邮件报告。允许的值为:01
is_enabled 可选 布尔值 网站跟踪状态。允许的值为:01
curl --request POST \
--url 'https://t.essnn.com/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Example' \
--form 'is_enabled=0' \
{
    "data": {
        "id": 1
    }
}
DELETE https://t.essnn.com/api/websites/{website_id}
curl --request DELETE \
--url 'https://t.essnn.com/api/websites/{website_id}' \
--header 'Authorization: Bearer {api_key}' \