Lenker
GET https://app.weby777.com/api/links/
curl --request GET \
--url 'https://app.weby777.com/api/links/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://app.weby777.com/api/links/' \
--header 'Authorization: Bearer {api_key}' \
Parametere | Detaljer | Beskrivelse |
---|---|---|
page | Valgfritt Heltall | Sidenummeret du ønsker resultater fra. Standardverdi er 1 . |
results_per_page | Valgfritt Heltall | Hvor mange resultater du ønsker per side. Tillatte verdier er: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Standardverdi er 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://app.weby777.com/api/links?&page=1",
"last": "https://app.weby777.com/api/links?&page=1",
"next": null,
"prev": null,
"self": "https://app.weby777.com/api/links?&page=1"
}
}
GET https://app.weby777.com/api/links/{link_id}
curl --request GET \
--url 'https://app.weby777.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://app.weby777.com/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://app.weby777.com/api/links
Parametere | Detaljer | Beskrivelse |
---|---|---|
type | Valgfritt Streng | link |
location_url | Påkrevd Streng | Mål-URL-en. |
url | Valgfritt Streng | URL-aliaset til den genererte lenken. La være tomt for å generere en tilfeldig. |
domain_id | Valgfritt Heltall | - |
project_id | Valgfritt Heltall | - |
pixels_ids | Valgfritt Matrise Heltall | - |
schedule | Valgfritt Boolsk | - |
start_date | Valgfritt Streng | Available when: schedule = true |
end_date | Valgfritt Streng | Available when: schedule = true |
clicks_limit | Valgfritt Heltall | - |
expiration_url | Valgfritt Streng | - |
sensitive_content | Valgfritt Boolsk | - |
http_status_code | Valgfritt Heltall | Tillatte verdier: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Valgfritt Boolsk | - |
cloaking_is_enabled | Valgfritt Boolsk | - |
cloaking_title | Valgfritt Streng | - |
cloaking_favicon | Valgfritt Fil | - |
password | Valgfritt Streng | - |
forward_query_parameters_is_enabled | Valgfritt Boolsk | - |
utm_source | Valgfritt missing_translation: api_documentation.strings | - |
utm_medium | Valgfritt missing_translation: api_documentation.strings | - |
utm_campaign | Valgfritt missing_translation: api_documentation.strings | - |
targeting_type | Valgfritt Streng | country_code , device_type , browser_language , rotation , os_name |
targeting_country_code_key[index] | Valgfritt Streng | (targeting_type=country_code) |
targeting_country_code_value[index] | Valgfritt Streng | (targeting_type=country_code) |
targeting_device_type_key[index] | Valgfritt Streng | (targeting_type=device_type) |
targeting_device_type_value[index] | Valgfritt Streng | (targeting_type=device_type) |
targeting_browser_language_key[index] | Valgfritt Streng | (targeting_type=browser_language) |
targeting_browser_language_value[index] | Valgfritt Streng | (targeting_type=browser_language) |
targeting_rotation_key[index] | Valgfritt Streng | (targeting_type=rotation) |
targeting_rotation_value[index] | Valgfritt Streng | (targeting_type=rotation) |
targeting_os_name_key[index] | Valgfritt Streng | (targeting_type=os_name) |
targeting_os_name_value[index] | Valgfritt Streng | (targeting_type=os_name) |
curl --request POST \
--url 'https://app.weby777.com/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://app.weby777.com/' \
--url 'https://app.weby777.com/api/links' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'url=example' \
--form 'location_url=https://app.weby777.com/' \
{
"data": {
"id": 1
}
}
POST https://app.weby777.com/api/links/{link_id}
Parametere | Detaljer | Beskrivelse |
---|---|---|
location_url | Valgfritt Streng | Mål-URL-en. |
url | Valgfritt Streng | URL-aliaset til den genererte lenken. La være tomt for å generere en tilfeldig. |
domain_id | Valgfritt Heltall | - |
project_id | Valgfritt Heltall | - |
pixels_ids | Valgfritt Matrise Heltall | - |
schedule | Valgfritt Boolsk | - |
start_date | Valgfritt Streng | Available when: schedule = true |
end_date | Valgfritt Streng | Available when: schedule = true |
clicks_limit | Valgfritt Heltall | - |
expiration_url | Valgfritt Streng | - |
sensitive_content | Valgfritt Boolsk | - |
http_status_code | Valgfritt Heltall | Tillatte verdier: 301 , 302 , 307 , 308 |
app_linking_is_enabled | Valgfritt Boolsk | - |
cloaking_is_enabled | Valgfritt Boolsk | - |
cloaking_title | Valgfritt Streng | - |
cloaking_favicon | Valgfritt Fil | - |
password | Valgfritt Streng | - |
forward_query_parameters_is_enabled | Valgfritt Boolsk | - |
utm_source | Valgfritt missing_translation: api_documentation.strings | - |
utm_medium | Valgfritt missing_translation: api_documentation.strings | - |
utm_campaign | Valgfritt missing_translation: api_documentation.strings | - |
targeting_type | Valgfritt Streng | country_code , device_type , browser_language , rotation , os_name |
targeting_country_code_key[index] | Valgfritt Streng | (targeting_type=country_code) |
targeting_country_code_value[index] | Valgfritt Streng | (targeting_type=country_code) |
targeting_device_type_key[index] | Valgfritt Streng | (targeting_type=device_type) |
targeting_device_type_value[index] | Valgfritt Streng | (targeting_type=device_type) |
targeting_browser_language_key[index] | Valgfritt Streng | (targeting_type=browser_language) |
targeting_browser_language_value[index] | Valgfritt Streng | (targeting_type=browser_language) |
targeting_rotation_key[index] | Valgfritt Streng | (targeting_type=rotation) |
targeting_rotation_value[index] | Valgfritt Streng | (targeting_type=rotation) |
targeting_os_name_key[index] | Valgfritt Streng | (targeting_type=os_name) |
targeting_os_name_value[index] | Valgfritt Streng | (targeting_type=os_name) |
curl --request POST \
--url 'https://app.weby777.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
--url 'https://app.weby777.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'is_enabled=0' \
{
"data": {
"id": 1
}
}
DELETE https://app.weby777.com/api/links/{link_id}
curl --request DELETE \
--url 'https://app.weby777.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://app.weby777.com/api/links/{link_id}' \
--header 'Authorization: Bearer {api_key}' \