Спасылкі
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}' \
Параметры | Падрабязнасці | Апісанне |
---|---|---|
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
},
"pageviews": 10,
"order": 0,
"start_date": null,
"end_date": null,
"datetime": "2025-03-12 15:37:31"
}
],
"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:37:31"
}
}
POST https://77qr.io/api/links
Параметры | Падрабязнасці | Апісанне |
---|---|---|
location_url | Неабходна. Струка | URL пункту прызначэння. |
url | Апцыянальны. Струка | URL-сувязь створанай спасылкі. Пакіньце пустым для выпадкова створанай. |
domain_id | Апцыянальны. Цэлы лік | - |
project_id | Апцыянальны. Цэлы лік | - |
pixels_ids | Апцыянальны. Масіў Цэлы лік | - |
schedule | Апцыянальны. Лагічны. | - |
start_date | Апцыянальны. Струка | Даступна калі: schedule = true |
end_date | Апцыянальны. Струка | Даступна калі: schedule = true |
pageviews_limit | Апцыянальны. Цэлы лік | - |
expiration_url | Апцыянальны. Струка | - |
password | Апцыянальны. Струка | - |
forward_query_parameters_is_enabled | Апцыянальны. Лагічны. | - |
utm_source | Апцыянальны. Струка | - |
utm_medium | Апцыянальны. Струка | - |
utm_campaign | Апцыянальны. Струка | - |
sensitive_content | Апцыянальны. Лагічны. | - |
http_status_code | Апцыянальны. Цэлы лік | Дазволеныя значэнні: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Апцыянальны. Лагічны. | - |
cloaking_is_enabled | Апцыянальны. Лагічны. | - |
cloaking_title | Апцыянальны. Струка | - |
cloaking_custom_js | Апцыянальны. Струка | - |
cloaking_favicon | Апцыянальны. Файл | - |
cloaking_opengraph | Апцыянальны. Файл | - |
targeting_type | Апцыянальны. Струка | continent_code , country_code , city_name , 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://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}
Параметры | Падрабязнасці | Апісанне |
---|---|---|
location_url | Апцыянальны. Струка | URL пункту прызначэння. |
url | Апцыянальны. Струка | URL-сувязь створанай спасылкі. Пакіньце пустым для выпадкова створанай. |
domain_id | Апцыянальны. Цэлы лік | - |
project_id | Апцыянальны. Цэлы лік | - |
pixels_ids | Апцыянальны. Масіў Цэлы лік | - |
schedule | Апцыянальны. Лагічны. | - |
start_date | Апцыянальны. Струка | Даступна калі: schedule = true |
end_date | Апцыянальны. Струка | Даступна калі: schedule = true |
pageviews_limit | Апцыянальны. Цэлы лік | - |
expiration_url | Апцыянальны. Струка | - |
password | Апцыянальны. Струка | - |
forward_query_parameters_is_enabled | Апцыянальны. Лагічны. | - |
utm_source | Апцыянальны. Струка | - |
utm_medium | Апцыянальны. Струка | - |
utm_campaign | Апцыянальны. Струка | - |
sensitive_content | Апцыянальны. Лагічны. | - |
http_status_code | Апцыянальны. Цэлы лік | Дазволеныя значэнні: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Апцыянальны. Лагічны. | - |
cloaking_is_enabled | Апцыянальны. Лагічны. | - |
cloaking_title | Апцыянальны. Струка | - |
cloaking_custom_js | Апцыянальны. Струка | - |
cloaking_favicon | Апцыянальны. Файл | - |
cloaking_opengraph | Апцыянальны. Файл | - |
targeting_type | Апцыянальны. Струка | continent_code , country_code , city_name , 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://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}' \