Legături
GET https://noiq.us/api/links/
curl --request GET \
--url 'https://noiq.us/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://noiq.us/api/links/' \
--header 'Authorization: Bearer {api_key}' \
Parametri | Detalii | Descriere |
---|---|---|
page | Opțional Număr întreg | Numărul paginii de la care doriți rezultate. Implicit 1 .
|
results_per_page | Opțional Număr întreg | Câte rezultate doriți pe pagină. Valorile permise sunt: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Implicit 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,
"date": "2020-11-15 12:00:00"
}
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://noiq.us/api/links?&page=1",
"last": "https://noiq.us/api/links?&page=1",
"next": null,
"prev": null,
"self": "https://noiq.us/api/links?&page=1"
}
}
GET https://noiq.us/api/links/{link_id}
curl --request GET \
--url 'https://noiq.us/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://noiq.us/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,
"date": "2020-11-15 12:00:00"
}
}
POST https://noiq.us/api/links
Parametri | Detalii | Descriere |
---|---|---|
type | Opțional String | link |
location_url | Necesar String | URL-ul destinației. |
url | Opțional String | Alias-ul URL al linkului generat. Lăsați gol pentru unul generat aleatoriu. |
domain_id | Opțional Număr întreg | - |
project_id | Opțional Număr întreg | - |
pixels_ids | Opțional Array Număr întreg | - |
schedule | Opțional Boolean | - |
start_date | Opțional String | Disponibil când: schedule = true |
end_date | Opțional String | Disponibil când: schedule = true |
clicks_limit | Opțional Număr întreg | - |
expiration_url | Opțional String | - |
sensitive_content | Opțional Boolean | - |
http_status_code | Opțional Număr întreg | Valorile permise: 301 , 302 , 307 , 308
|
app_linking_is_enabled | Opțional Boolean | - |
cloaking_is_enabled | Opțional Boolean | - |
cloaking_title | Opțional String | - |
cloaking_favicon | Opțional Fișier | - |
cloaking_opengraph | Opțional Fișier | - |
password | Opțional String | - |
forward_query_parameters_is_enabled | Opțional Boolean | - |
utm_source | Opțional missing_translation: api_documentation.strings | - |
utm_medium | Opțional missing_translation: api_documentation.strings | - |
utm_campaign | Opțional missing_translation: api_documentation.strings | - |
targeting_type | Opțional String | continent_code , country_code , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | Opțional String | (targeting_type=continent_code) |
targeting_continent_code_value[index] | Opțional String | (targeting_type=continent_code) |
targeting_country_code_key[index] | Opțional String | (targeting_type=country_code) |
targeting_country_code_value[index] | Opțional String | (targeting_type=country_code) |
targeting_city_name_key[index] | Opțional String | (targeting_type=city_name) |
targeting_city_name_value[index] | Opțional String | (targeting_type=city_name) |
targeting_device_type_key[index] | Opțional String | (targeting_type=device_type) |
targeting_device_type_value[index] | Opțional String | (targeting_type=device_type) |
targeting_browser_language_key[index] | Opțional String | (targeting_type=browser_language) |
targeting_browser_language_value[index] | Opțional String | (targeting_type=browser_language) |
targeting_rotation_key[index] | Opțional String | (targeting_type=rotation) |
targeting_rotation_value[index] | Opțional String | (targeting_type=rotation) |
targeting_os_name_key[index] | Opțional String | (targeting_type=os_name) |
targeting_os_name_value[index] | Opțional String | (targeting_type=os_name) |
targeting_browser_name_key[index] | Opțional String | (targeting_type=browser_name) |
targeting_browser_name_value[index] | Opțional String | (targeting_type=browser_name) |
curl --request POST \
--url 'https://noiq.us/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://noiq.us/' \
--url 'https://noiq.us/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://noiq.us/' \
{
"data": {
"id": 1
}
}
POST https://noiq.us/api/links/{link_id}
Parametri | Detalii | Descriere |
---|---|---|
location_url | Opțional String | URL-ul destinației. |
url | Opțional String | Alias-ul URL al linkului generat. Lăsați gol pentru unul generat aleatoriu. |
domain_id | Opțional Număr întreg | - |
project_id | Opțional Număr întreg | - |
pixels_ids | Opțional Array Număr întreg | - |
schedule | Opțional Boolean | - |
start_date | Opțional String | Disponibil când: schedule = true |
end_date | Opțional String | Disponibil când: schedule = true |
clicks_limit | Opțional Număr întreg | - |
expiration_url | Opțional String | - |
sensitive_content | Opțional Boolean | - |
http_status_code | Opțional Număr întreg | Valorile permise: 301 , 302 , 307 , 308
|
app_linking_is_enabled | Opțional Boolean | - |
cloaking_is_enabled | Opțional Boolean | - |
cloaking_title | Opțional String | - |
cloaking_favicon | Opțional Fișier | - |
cloaking_opengraph | Opțional Fișier | - |
password | Opțional String | - |
forward_query_parameters_is_enabled | Opțional Boolean | - |
utm_source | Opțional missing_translation: api_documentation.strings | - |
utm_medium | Opțional missing_translation: api_documentation.strings | - |
utm_campaign | Opțional missing_translation: api_documentation.strings | - |
targeting_type | Opțional String | continent_code , country_code , device_type , browser_language , rotation , os_name , browser_name |
targeting_continent_code_key[index] | Opțional String | (targeting_type=continent_code) |
targeting_continent_code_value[index] | Opțional String | (targeting_type=continent_code) |
targeting_country_code_key[index] | Opțional String | (targeting_type=country_code) |
targeting_country_code_value[index] | Opțional String | (targeting_type=country_code) |
targeting_city_name_key[index] | Opțional String | (targeting_type=city_name) |
targeting_city_name_value[index] | Opțional String | (targeting_type=city_name) |
targeting_device_type_key[index] | Opțional String | (targeting_type=device_type) |
targeting_device_type_value[index] | Opțional String | (targeting_type=device_type) |
targeting_browser_language_key[index] | Opțional String | (targeting_type=browser_language) |
targeting_browser_language_value[index] | Opțional String | (targeting_type=browser_language) |
targeting_rotation_key[index] | Opțional String | (targeting_type=rotation) |
targeting_rotation_value[index] | Opțional String | (targeting_type=rotation) |
targeting_os_name_key[index] | Opțional String | (targeting_type=os_name) |
targeting_os_name_value[index] | Opțional String | (targeting_type=os_name) |
targeting_browser_name_key[index] | Opțional String | (targeting_type=browser_name) |
targeting_browser_name_value[index] | Opțional String | (targeting_type=browser_name) |
curl --request POST \
--url 'https://noiq.us/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://noiq.us/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{
"data": {
"id": 1
}
}
DELETE https://noiq.us/api/links/{link_id}
curl --request DELETE \
--url 'https://noiq.us/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://noiq.us/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \