Links
GET https://linkusnow.wiki/api/links/
curl --request GET \
--url 'https://linkusnow.wiki/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linkusnow.wiki/api/links/' \
--header 'Authorization: Bearer {api_key}' \
Parámetros | Details | Description |
---|---|---|
page | Opcional Entero | El número de página de la que desea resultados. Predeterminado a1 . |
results_per_page | Opcional Entero | Cuántos resultados quieres por página. Los valores permitidos son: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Predeterminado a25 . |
{
"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://linkusnow.wiki/api/links?&page=1",
"last": "https://linkusnow.wiki/api/links?&page=1",
"next": null,
"prev": null,
"self": "https://linkusnow.wiki/api/links?&page=1"
}
}
GET https://linkusnow.wiki/api/links/{link_id}
curl --request GET \
--url 'https://linkusnow.wiki/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linkusnow.wiki/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://linkusnow.wiki/api/links
Parámetros | Details | Description |
---|---|---|
type | Opcional Cadena | link |
location_url | Requerido Cadena | La URL del destino. |
url | Opcional Cadena | El alias de URL del enlace generado. Deje vacío para uno generado aleatoriamente. |
domain_id | Opcional Entero | - |
project_id | Opcional Entero | - |
pixels_ids | Opcional Formación Entero | - |
schedule | Opcional booleano | - |
start_date | Opcional Cadena | Available when: schedule = true |
end_date | Opcional Cadena | Available when: schedule = true |
clicks_limit | Opcional Entero | - |
expiration_url | Opcional Cadena | - |
sensitive_content | Opcional booleano | - |
http_status_code | Opcional Entero | Valores permitidos: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Opcional booleano | - |
cloaking_is_enabled | Opcional booleano | - |
cloaking_title | Opcional Cadena | - |
cloaking_favicon | Opcional Archivo | - |
password | Opcional Cadena | - |
forward_query_parameters_is_enabled | Opcional booleano | - |
utm_source | Opcional missing_translation: api_documentation.strings | - |
utm_medium | Opcional missing_translation: api_documentation.strings | - |
utm_campaign | Opcional missing_translation: api_documentation.strings | - |
targeting_type | Opcional Cadena | country_code , device_type , browser_language , rotation , os_name |
targeting_country_code_key[index] | Opcional Cadena | (targeting_type=country_code) |
targeting_country_code_value[index] | Opcional Cadena | (targeting_type=country_code) |
targeting_device_type_key[index] | Opcional Cadena | (targeting_type=device_type) |
targeting_device_type_value[index] | Opcional Cadena | (targeting_type=device_type) |
targeting_browser_language_key[index] | Opcional Cadena | (targeting_type=browser_language) |
targeting_browser_language_value[index] | Opcional Cadena | (targeting_type=browser_language) |
targeting_rotation_key[index] | Opcional Cadena | (targeting_type=rotation) |
targeting_rotation_value[index] | Opcional Cadena | (targeting_type=rotation) |
targeting_os_name_key[index] | Opcional Cadena | (targeting_type=os_name) |
targeting_os_name_value[index] | Opcional Cadena | (targeting_type=os_name) |
curl --request POST \
--url 'https://linkusnow.wiki/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://linkusnow.wiki/' \
--url 'https://linkusnow.wiki/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://linkusnow.wiki/' \
{
"data": {
"id": 1
}
}
POST https://linkusnow.wiki/api/links/{link_id}
Parámetros | Details | Description |
---|---|---|
location_url | Opcional Cadena | La URL del destino. |
url | Opcional Cadena | El alias de URL del enlace generado. Deje vacío para uno generado aleatoriamente. |
domain_id | Opcional Entero | - |
project_id | Opcional Entero | - |
pixels_ids | Opcional Formación Entero | - |
schedule | Opcional booleano | - |
start_date | Opcional Cadena | Available when: schedule = true |
end_date | Opcional Cadena | Available when: schedule = true |
clicks_limit | Opcional Entero | - |
expiration_url | Opcional Cadena | - |
sensitive_content | Opcional booleano | - |
http_status_code | Opcional Entero | Valores permitidos: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Opcional booleano | - |
cloaking_is_enabled | Opcional booleano | - |
cloaking_title | Opcional Cadena | - |
cloaking_favicon | Opcional Archivo | - |
password | Opcional Cadena | - |
forward_query_parameters_is_enabled | Opcional booleano | - |
utm_source | Opcional missing_translation: api_documentation.strings | - |
utm_medium | Opcional missing_translation: api_documentation.strings | - |
utm_campaign | Opcional missing_translation: api_documentation.strings | - |
targeting_type | Opcional Cadena | country_code , device_type , browser_language , rotation , os_name |
targeting_country_code_key[index] | Opcional Cadena | (targeting_type=country_code) |
targeting_country_code_value[index] | Opcional Cadena | (targeting_type=country_code) |
targeting_device_type_key[index] | Opcional Cadena | (targeting_type=device_type) |
targeting_device_type_value[index] | Opcional Cadena | (targeting_type=device_type) |
targeting_browser_language_key[index] | Opcional Cadena | (targeting_type=browser_language) |
targeting_browser_language_value[index] | Opcional Cadena | (targeting_type=browser_language) |
targeting_rotation_key[index] | Opcional Cadena | (targeting_type=rotation) |
targeting_rotation_value[index] | Opcional Cadena | (targeting_type=rotation) |
targeting_os_name_key[index] | Opcional Cadena | (targeting_type=os_name) |
targeting_os_name_value[index] | Opcional Cadena | (targeting_type=os_name) |
curl --request POST \
--url 'https://linkusnow.wiki/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://linkusnow.wiki/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{
"data": {
"id": 1
}
}
DELETE https://linkusnow.wiki/api/links/{link_id}
curl --request DELETE \
--url 'https://linkusnow.wiki/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linkusnow.wiki/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \