Splash pages
GET https://mybiopage.net/api/splash-pages/
curl --request GET \
--url 'https://mybiopage.net/api/splash-pages/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://mybiopage.net/api/splash-pages/' \
--header 'Authorization: Bearer {api_key}' \
Parametri | Details | Description |
---|---|---|
page | Opzionale Intero | Il numero di pagina da cui vuoi visualizzare i risultati. Predefinito a 1 . |
results_per_page | Opzionale Intero | Quanti risultati vuoi per pagina. Valori consentiti: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Predefinito a 25 . |
{
"data": [
{
"id": 1,
"name": "Development",
"color": "#0e23cc",
"last_datetime": "2021-03-14 21:22:37",
"datetime": "2021-02-04 17:51:07"
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://mybiopage.net/api/projects?&page=1",
"last": "https://mybiopage.net/api/projects?&page=1",
"next": null,
"prev": null,
"self": "https://mybiopage.net/api/projects?&page=1"
}
}
GET https://mybiopage.net/api/splash-pages/{splash_page_id}
curl --request GET \
--url 'https://mybiopage.net/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://mybiopage.net/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"name": "Development",
"color": "#0e23cc",
"last_datetime": "2021-03-14 21:22:37",
"datetime": "2021-02-04 17:51:07"
}
}
POST https://mybiopage.net/api/projects
Parametri | Details | Description |
---|---|---|
name | Richiesto Stringa | - |
title | Opzionale Stringa | - |
logo | Opzionale File | - |
description | Opzionale Stringa | - |
secondary_button_name | Opzionale Stringa | - |
secondary_button_url | Opzionale Stringa | - |
custom_css | Opzionale Stringa | - |
custom_js | Opzionale Stringa | - |
ads_header | Opzionale Stringa | - |
ads_footer | Opzionale Stringa | - |
link_unlock_seconds | Opzionale Intero | - |
auto_redirect | Opzionale Booleano | - |
curl --request POST \
--url 'https://mybiopage.net/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://mybiopage.net/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://mybiopage.net/api/splash-pages/{splash_page_id}
Parametri | Details | Description |
---|---|---|
name | Opzionale Stringa | - |
title | Opzionale Stringa | - |
logo | Opzionale File | - |
description | Opzionale Stringa | - |
secondary_button_name | Opzionale Stringa | - |
secondary_button_url | Opzionale Stringa | - |
custom_css | Opzionale Stringa | - |
custom_js | Opzionale Stringa | - |
ads_header | Opzionale Stringa | - |
ads_footer | Opzionale Stringa | - |
link_unlock_seconds | Opzionale Intero | - |
auto_redirect | Opzionale Booleano | - |
curl --request POST \
--url 'https://mybiopage.net/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://mybiopage.net/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://mybiopage.net/api/splash-pages/{splash_page_id}
curl --request DELETE \
--url 'https://mybiopage.net/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://mybiopage.net/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \