Liên kết
GET https://77qr.io/api/links/
curl --request GET \
--url 'https://77qr.io/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://77qr.io/api/links/' \
--header 'Authorization: Bearer {api_key}' \
Tham số | Chi tiết | Mô tả |
---|---|---|
page | Tùy chọn Số nguyên | Số trang mà bạn muốn kết quả từ. Mặc định là 1 . |
results_per_page | Tùy chọn Số nguyên | Bạn muốn bao nhiêu kết quả mỗi trang. Các giá trị cho phép là: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Mặc định là 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
},
"pageviews": 10,
"order": 0,
"start_date": null,
"end_date": null,
"datetime": "2025-03-12 15:39:26"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://77qr.io/api/links?&page=1",
"last": "https://77qr.io/api/links?&page=1",
"next": null,
"prev": null,
"self": "https://77qr.io/api/links?&page=1"
}
}
GET https://77qr.io/api/links/{link_id}
curl --request GET \
--url 'https://77qr.io/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://77qr.io/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
},
"pageviews": 10,
"order": 0,
"start_date": null,
"end_date": null,
"datetime": "2025-03-12 15:39:26"
}
}
POST https://77qr.io/api/links
Tham số | Chi tiết | Mô tả |
---|---|---|
location_url | Bắt buộc Chuỗi | URL của điểm đến. |
url | Tùy chọn Chuỗi | Bí danh URL của liên kết được tạo. Để trống để tạo ngẫu nhiên. |
domain_id | Tùy chọn Số nguyên | - |
project_id | Tùy chọn Số nguyên | - |
pixels_ids | Tùy chọn Mảng Số nguyên | - |
schedule | Tùy chọn Boolean | - |
start_date | Tùy chọn Chuỗi | Có sẵn khi: schedule = true |
end_date | Tùy chọn Chuỗi | Có sẵn khi: schedule = true |
pageviews_limit | Tùy chọn Số nguyên | - |
expiration_url | Tùy chọn Chuỗi | - |
password | Tùy chọn Chuỗi | - |
forward_query_parameters_is_enabled | Tùy chọn Boolean | - |
utm_source | Tùy chọn Chuỗi | - |
utm_medium | Tùy chọn Chuỗi | - |
utm_campaign | Tùy chọn Chuỗi | - |
sensitive_content | Tùy chọn Boolean | - |
http_status_code | Tùy chọn Số nguyên | Các giá trị được phép: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Tùy chọn Boolean | - |
cloaking_is_enabled | Tùy chọn Boolean | - |
cloaking_title | Tùy chọn Chuỗi | - |
cloaking_custom_js | Tùy chọn Chuỗi | - |
cloaking_favicon | Tùy chọn Tệp tin | - |
cloaking_opengraph | Tùy chọn Tệp tin | - |
targeting_type | Tùy chọn Chuỗi | continent_code , country_code , city_name , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = continent_code |
targeting_continent_code_value[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = continent_code |
targeting_country_code_key[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = country_code |
targeting_country_code_value[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = country_code |
targeting_city_name_key[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = city_name |
targeting_city_name_value[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = city_name |
targeting_device_type_key[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = device_type |
targeting_device_type_value[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = device_type |
targeting_browser_language_key[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = browser_language |
targeting_browser_language_value[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = browser_language |
targeting_rotation_key[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = rotation |
targeting_rotation_value[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = rotation |
targeting_os_name_key[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = os_name |
targeting_os_name_value[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = os_name |
targeting_browser_name_key[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = browser_name |
targeting_browser_name_value[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = browser_name |
curl --request POST \
--url 'https://77qr.io/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://77qr.io/' \
--url 'https://77qr.io/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://77qr.io/' \
{
"data": {
"id": 1
}
}
POST https://77qr.io/api/links/{link_id}
Tham số | Chi tiết | Mô tả |
---|---|---|
location_url | Tùy chọn Chuỗi | URL của điểm đến. |
url | Tùy chọn Chuỗi | Bí danh URL của liên kết được tạo. Để trống để tạo ngẫu nhiên. |
domain_id | Tùy chọn Số nguyên | - |
project_id | Tùy chọn Số nguyên | - |
pixels_ids | Tùy chọn Mảng Số nguyên | - |
schedule | Tùy chọn Boolean | - |
start_date | Tùy chọn Chuỗi | Có sẵn khi: schedule = true |
end_date | Tùy chọn Chuỗi | Có sẵn khi: schedule = true |
pageviews_limit | Tùy chọn Số nguyên | - |
expiration_url | Tùy chọn Chuỗi | - |
password | Tùy chọn Chuỗi | - |
forward_query_parameters_is_enabled | Tùy chọn Boolean | - |
utm_source | Tùy chọn Chuỗi | - |
utm_medium | Tùy chọn Chuỗi | - |
utm_campaign | Tùy chọn Chuỗi | - |
sensitive_content | Tùy chọn Boolean | - |
http_status_code | Tùy chọn Số nguyên | Các giá trị được phép: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Tùy chọn Boolean | - |
cloaking_is_enabled | Tùy chọn Boolean | - |
cloaking_title | Tùy chọn Chuỗi | - |
cloaking_custom_js | Tùy chọn Chuỗi | - |
cloaking_favicon | Tùy chọn Tệp tin | - |
cloaking_opengraph | Tùy chọn Tệp tin | - |
targeting_type | Tùy chọn Chuỗi | continent_code , country_code , city_name , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = continent_code |
targeting_continent_code_value[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = continent_code |
targeting_country_code_key[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = country_code |
targeting_country_code_value[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = country_code |
targeting_city_name_key[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = city_name |
targeting_city_name_value[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = city_name |
targeting_device_type_key[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = device_type |
targeting_device_type_value[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = device_type |
targeting_browser_language_key[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = browser_language |
targeting_browser_language_value[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = browser_language |
targeting_rotation_key[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = rotation |
targeting_rotation_value[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = rotation |
targeting_os_name_key[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = os_name |
targeting_os_name_value[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = os_name |
targeting_browser_name_key[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = browser_name |
targeting_browser_name_value[index] | Tùy chọn Chuỗi | Có sẵn khi: targeting_type = browser_name |
curl --request POST \
--url 'https://77qr.io/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://77qr.io/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{
"data": {
"id": 1
}
}
DELETE https://77qr.io/api/links/{link_id}
curl --request DELETE \
--url 'https://77qr.io/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://77qr.io/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \