Pagini de introducere
GET https://heo.li/api/splash-pages/
curl --request GET \
--url 'https://heo.li/api/splash-pages/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://heo.li/api/splash-pages/' \
--header 'Authorization: Bearer {api_key}' \
| Parametri | Detalii | Descriere |
|---|---|---|
| page | Opțional Întreg | Numărul paginii de la care doriți rezultatele. Implicit 1 |
| results_per_page | Opțional Întreg | Câte rezultate doriți pe pagină. Valorile permise sunt: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Implicit este 25. |
{
"data": [
{
"id": 1,
"name": "Development",
"color": "#0e23cc",
"last_datetime": null,
"datetime": "2025-10-29 19:49:12",
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://heo.li/api/projects?page=1",
"last": "https://heo.li/api/projects?page=1",
"next": null,
"prev": null,
"self": "https://heo.li/api/projects?page=1"
}
}
GET https://heo.li/api/splash-pages/{splash_page_id}
curl --request GET \
--url 'https://heo.li/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://heo.li/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"name": "Development",
"color": "#0e23cc",
"last_datetime": null,
"datetime": "2025-10-29 19:49:12",
}
}
POST https://heo.li/api/projects
| Parametri | Detalii | Descriere |
|---|---|---|
| name | Obligatoriu Șir | - |
| title | Opțional Șir | - |
| logo | Opțional Fișier | - |
| favicon | Opțional Fișier | - |
| opengraph | Opțional Fișier | - |
| description | Opțional Șir | - |
| secondary_button_name | Opțional Șir | - |
| secondary_button_url | Opțional Șir | - |
| custom_css | Opțional Șir | - |
| custom_js | Opțional Șir | - |
| ads_header | Opțional Șir | - |
| ads_footer | Opțional Șir | - |
| link_unlock_seconds | Opțional Întreg | - |
| auto_redirect | Opțional Boolean | - |
curl --request POST \
--url 'https://heo.li/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://heo.li/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://heo.li/api/splash-pages/{splash_page_id}
| Parametri | Detalii | Descriere |
|---|---|---|
| name | Opțional Șir | - |
| title | Opțional Șir | - |
| logo | Opțional Fișier | - |
| favicon | Opțional Fișier | - |
| opengraph | Opțional Fișier | - |
| description | Opțional Șir | - |
| secondary_button_name | Opțional Șir | - |
| secondary_button_url | Opțional Șir | - |
| custom_css | Opțional Șir | - |
| custom_js | Opțional Șir | - |
| ads_header | Opțional Șir | - |
| ads_footer | Opțional Șir | - |
| link_unlock_seconds | Opțional Întreg | - |
| auto_redirect | Opțional Boolean | - |
curl --request POST \
--url 'https://heo.li/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://heo.li/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://heo.li/api/splash-pages/{splash_page_id}
curl --request DELETE \
--url 'https://heo.li/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://heo.li/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \