តំណភ្ជាប់
GET https://h3h3.site/api/links/
curl --request GET \
--url 'https://h3h3.site/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://h3h3.site/api/links/' \
--header 'Authorization: Bearer {api_key}' \
ប៉ារ៉ាម៉ែត្រ | ព័ត៌មានលម្អិត | ការពិពណ៌នា |
---|---|---|
page | ស្រេចចិត្ត ចំនួនគត់ | លេខទំព័រដែលអ្នកចង់បានលទ្ធផលពី។ លំនាំដើមទៅ 1 ។ |
results_per_page | ស្រេចចិត្ត ចំនួនគត់ | តើអ្នកចង់បានលទ្ធផលប៉ុន្មានក្នុងមួយទំព័រ។ តម្លៃដែលអនុញ្ញាតគឺ: 10 , 25 , 50 , 100 , 250 , 500 , 1000 ។ លំនាំដើមទៅ 25 ។ |
{ "data": [ { "id": 1, "project_id": null, "domain_id": 0, "type": "link", "url": "example", "location_url": "https://example.com/", "settings": { "password": null, "sensitive_content": false }, "clicks": 10, "order": 0, "start_date": null, "end_date": null, "datetime": "2025-10-07 20:07:04", } ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://h3h3.site/api/links?page=1", "last": "https://h3h3.site/api/links?page=1", "next": null, "prev": null, "self": "https://h3h3.site/api/links?page=1" } }
GET https://h3h3.site/api/links/{link_id}
curl --request GET \
--url 'https://h3h3.site/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://h3h3.site/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "project_id": null, "domain_id": 0, "type": "link", "url": "example", "location_url": "https://example.com/", "settings": { "password": null, "sensitive_content": false }, "clicks": 10, "order": 0, "start_date": null, "end_date": null, "datetime": "2025-10-07 20:07:04", } }
POST https://h3h3.site/api/links
ប៉ារ៉ាម៉ែត្រ | ព័ត៌មានលម្អិត | ការពិពណ៌នា |
---|---|---|
type | ស្រេចចិត្ត សូត្រ | link |
location_url | ទាមទារ សូត្រ | URL នៃគោលដៅ។មាននៅពេល៖ is_bulk = 0 |
location_urls | ទាមទារ សូត្រ | URL នៃគោលដៅ។មាននៅពេល៖ is_bulk = 1 |
url | ស្រេចចិត្ត សូត្រ | អាសយដ្ឋាន URL នៃតំណភ្ជាប់ដែលបានបង្កើត។ ទុកឲ្យទទេសម្រាប់ការបង្កើតដោយចៃដន្យ។មាននៅពេល៖ is_bulk = 0 |
is_bulk | ស្រេចចិត្ត ប៊ូលីន | |
domain_id | ស្រេចចិត្ត ចំនួនគត់ | - |
project_id | ស្រេចចិត្ត ចំនួនគត់ | - |
pixels_ids | ស្រេចចិត្ត អារេ ចំនួនគត់ | - |
email_reports | ស្រេចចិត្ត អារេ | លេខសម្គាល់អ្នកគ្រប់គ្រងការជូនដំណឹង |
schedule | ស្រេចចិត្ត ប៊ូលីន | - |
start_date | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ schedule = true |
end_date | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ schedule = true |
clicks_limit | ស្រេចចិត្ត ចំនួនគត់ | - |
expiration_url | ស្រេចចិត្ត សូត្រ | - |
sensitive_content | ស្រេចចិត្ត ប៊ូលីន | - |
http_status_code | ស្រេចចិត្ត ចំនួនគត់ | តម្លៃដែលអនុញ្ញាត៖ 301 , 302 , 307 , 308 |
app_linking_is_enabled | ស្រេចចិត្ត ប៊ូលីន | - |
cloaking_is_enabled | ស្រេចចិត្ត ប៊ូលីន | - |
cloaking_title | ស្រេចចិត្ត សូត្រ | - |
cloaking_meta_description | ស្រេចចិត្ត សូត្រ | - |
cloaking_custom_js | ស្រេចចិត្ត សូត្រ | - |
cloaking_favicon | ស្រេចចិត្ត ឯកសារ | - |
cloaking_opengraph | ស្រេចចិត្ត ឯកសារ | - |
password | ស្រេចចិត្ត សូត្រ | - |
forward_query_parameters_is_enabled | ស្រេចចិត្ត ប៊ូលីន | - |
utm_source | ស្រេចចិត្ត សូត្រ | - |
utm_medium | ស្រេចចិត្ត សូត្រ | - |
utm_campaign | ស្រេចចិត្ត សូត្រ | - |
targeting_type | ស្រេចចិត្ត សូត្រ | continent_code , country_code , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = continent_code |
targeting_continent_code_value[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = continent_code |
targeting_country_code_key[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = country_code |
targeting_country_code_value[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = country_code |
targeting_city_name_key[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = city_name |
targeting_city_name_value[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = city_name |
targeting_device_type_key[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = device_type |
targeting_device_type_value[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = device_type |
targeting_browser_language_key[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = browser_language |
targeting_browser_language_value[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = browser_language |
targeting_rotation_key[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = rotation |
targeting_rotation_value[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = rotation |
targeting_os_name_key[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = os_name |
targeting_os_name_value[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = os_name |
targeting_browser_name_key[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = browser_name |
targeting_browser_name_value[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = browser_name |
curl --request POST \
--url 'https://h3h3.site/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://h3h3.site/' \
--url 'https://h3h3.site/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://h3h3.site/' \
{ "data": { "id": 1 } }
POST https://h3h3.site/api/links/{link_id}
ប៉ារ៉ាម៉ែត្រ | ព័ត៌មានលម្អិត | ការពិពណ៌នា |
---|---|---|
location_url | ស្រេចចិត្ត សូត្រ | URL នៃគោលដៅ។ |
url | ស្រេចចិត្ត សូត្រ | អាសយដ្ឋាន URL នៃតំណភ្ជាប់ដែលបានបង្កើត។ ទុកឲ្យទទេសម្រាប់ការបង្កើតដោយចៃដន្យ។ |
domain_id | ស្រេចចិត្ត ចំនួនគត់ | - |
project_id | ស្រេចចិត្ត ចំនួនគត់ | - |
pixels_ids | ស្រេចចិត្ត អារេ ចំនួនគត់ | - |
email_reports | ស្រេចចិត្ត អារេ | លេខសម្គាល់អ្នកគ្រប់គ្រងការជូនដំណឹង |
schedule | ស្រេចចិត្ត ប៊ូលីន | - |
start_date | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ schedule = true |
end_date | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ schedule = true |
clicks_limit | ស្រេចចិត្ត ចំនួនគត់ | - |
expiration_url | ស្រេចចិត្ត សូត្រ | - |
sensitive_content | ស្រេចចិត្ត ប៊ូលីន | - |
http_status_code | ស្រេចចិត្ត ចំនួនគត់ | តម្លៃដែលអនុញ្ញាត៖ 301 , 302 , 307 , 308 |
app_linking_is_enabled | ស្រេចចិត្ត ប៊ូលីន | - |
cloaking_is_enabled | ស្រេចចិត្ត ប៊ូលីន | - |
cloaking_title | ស្រេចចិត្ត សូត្រ | - |
cloaking_meta_description | ស្រេចចិត្ត សូត្រ | - |
cloaking_custom_js | ស្រេចចិត្ត សូត្រ | - |
cloaking_favicon | ស្រេចចិត្ត ឯកសារ | - |
cloaking_opengraph | ស្រេចចិត្ត ឯកសារ | - |
password | ស្រេចចិត្ត សូត្រ | - |
forward_query_parameters_is_enabled | ស្រេចចិត្ត ប៊ូលីន | - |
utm_source | ស្រេចចិត្ត សូត្រ | - |
utm_medium | ស្រេចចិត្ត សូត្រ | - |
utm_campaign | ស្រេចចិត្ត សូត្រ | - |
targeting_type | ស្រេចចិត្ត សូត្រ | continent_code , country_code , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = continent_code |
targeting_continent_code_value[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = continent_code |
targeting_country_code_key[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = country_code |
targeting_country_code_value[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = country_code |
targeting_city_name_key[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = city_name |
targeting_city_name_value[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = city_name |
targeting_device_type_key[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = device_type |
targeting_device_type_value[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = device_type |
targeting_browser_language_key[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = browser_language |
targeting_browser_language_value[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = browser_language |
targeting_rotation_key[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = rotation |
targeting_rotation_value[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = rotation |
targeting_os_name_key[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = os_name |
targeting_os_name_value[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = os_name |
targeting_browser_name_key[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = browser_name |
targeting_browser_name_value[index] | ស្រេចចិត្ត សូត្រ | មាននៅពេល៖ targeting_type = browser_name |
curl --request POST \
--url 'https://h3h3.site/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://h3h3.site/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{ "data": { "id": 1 } }
DELETE https://h3h3.site/api/links/{link_id}
curl --request DELETE \
--url 'https://h3h3.site/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://h3h3.site/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \