Aloitussivut
GET https://linkki.si/api/splash-pages/
curl --request GET \
--url 'https://linkki.si/api/splash-pages/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linkki.si/api/splash-pages/' \
--header 'Authorization: Bearer {api_key}' \
parametrit | Tiedot | Kuvaus |
---|---|---|
page | Valinnainen Kokonaisluku | Sivunumero, josta haluat tuloksia. Oletusarvo on 1 . |
results_per_page | Valinnainen Kokonaisluku | Kuinka monta tulosta haluat sivua kohden. Sallitut arvot ovat: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Oletusarvo on 25 . |
{
"data": [
{
"id": 1,
"name": "Development",
"color": "#0e23cc",
"last_datetime": null,
"datetime": "2025-05-09 11:45:47"
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://linkki.si/api/projects?&page=1",
"last": "https://linkki.si/api/projects?&page=1",
"next": null,
"prev": null,
"self": "https://linkki.si/api/projects?&page=1"
}
}
GET https://linkki.si/api/splash-pages/{splash_page_id}
curl --request GET \
--url 'https://linkki.si/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linkki.si/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"name": "Development",
"color": "#0e23cc",
"last_datetime": null,
"datetime": "2025-05-09 11:45:47"
}
}
POST https://linkki.si/api/projects
parametrit | Tiedot | Kuvaus |
---|---|---|
name | Pakollinen String | - |
title | Valinnainen String | - |
logo | Valinnainen Tiedosto | - |
favicon | Valinnainen Tiedosto | - |
opengraph | Valinnainen Tiedosto | - |
description | Valinnainen String | - |
secondary_button_name | Valinnainen String | - |
secondary_button_url | Valinnainen String | - |
custom_css | Valinnainen String | - |
custom_js | Valinnainen String | - |
ads_header | Valinnainen String | - |
ads_footer | Valinnainen String | - |
link_unlock_seconds | Valinnainen Kokonaisluku | - |
auto_redirect | Valinnainen Boolen | - |
curl --request POST \
--url 'https://linkki.si/api/projects' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Sample splash page' \
--form 'title=Custom splash page title' \
--form 'description=Custom splash page description' \
--url 'https://linkki.si/api/projects' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Sample splash page' \
--form 'title=Custom splash page title' \
--form 'description=Custom splash page description' \
{
"data": {
"id": 1
}
}
POST https://linkki.si/api/splash-pages/{splash_page_id}
parametrit | Tiedot | Kuvaus |
---|---|---|
name | Valinnainen String | - |
title | Valinnainen String | - |
logo | Valinnainen Tiedosto | - |
favicon | Valinnainen Tiedosto | - |
opengraph | Valinnainen Tiedosto | - |
description | Valinnainen String | - |
secondary_button_name | Valinnainen String | - |
secondary_button_url | Valinnainen String | - |
custom_css | Valinnainen String | - |
custom_js | Valinnainen String | - |
ads_header | Valinnainen String | - |
ads_footer | Valinnainen String | - |
link_unlock_seconds | Valinnainen Kokonaisluku | - |
auto_redirect | Valinnainen Boolen | - |
curl --request POST \
--url 'https://linkki.si/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Sample splash page' \
--form 'title=Custom splash page title' \
--form 'description=Custom splash page description' \
--url 'https://linkki.si/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
--header 'Content-Type: multipart/form-data' \
--form 'name=Sample splash page' \
--form 'title=Custom splash page title' \
--form 'description=Custom splash page description' \
{
"data": {
"id": 1
}
}
DELETE https://linkki.si/api/splash-pages/{splash_page_id}
curl --request DELETE \
--url 'https://linkki.si/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linkki.si/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \