Splash pages

GET https://www.myshorturl.link/api/splash-pages/
curl --request GET \
--url 'https://www.myshorturl.link/api/splash-pages/' \
--header 'Authorization: Bearer {api_key}' \
Parametreler Details Description
page İsteğe bağlı Tamsayı Arama sonuçlarını istediğiniz sayfa numarası. Varsayılan olarak 1.
results_per_page İsteğe bağlı Tamsayı Her sayfa için kaç sonuç istediğinizi belirtin. İzin verilen değerler: 10 , 25 , 50 , 100 , 250 , 500 , 1000. Varsayılan değer: 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://www.myshorturl.link/api/projects?&page=1", "last": "https://www.myshorturl.link/api/projects?&page=1", "next": null, "prev": null, "self": "https://www.myshorturl.link/api/projects?&page=1" } }
GET https://www.myshorturl.link/api/splash-pages/{splash_page_id}
curl --request GET \
--url 'https://www.myshorturl.link/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://www.myshorturl.link/api/projects
Parametreler Details Description
name Gerekli Dize -
title İsteğe bağlı Dize -
logo İsteğe bağlı Dosya -
favicon İsteğe bağlı Dosya -
opengraph İsteğe bağlı Dosya -
description İsteğe bağlı Dize -
secondary_button_name İsteğe bağlı Dize -
secondary_button_url İsteğe bağlı Dize -
custom_css İsteğe bağlı Dize -
custom_js İsteğe bağlı Dize -
ads_header İsteğe bağlı Dize -
ads_footer İsteğe bağlı Dize -
link_unlock_seconds İsteğe bağlı Tamsayı -
auto_redirect İsteğe bağlı Boolean (Doğru/Yanlış) -
curl --request POST \
--url 'https://www.myshorturl.link/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://www.myshorturl.link/api/splash-pages/{splash_page_id}
Parametreler Details Description
name İsteğe bağlı Dize -
title İsteğe bağlı Dize -
logo İsteğe bağlı Dosya -
favicon İsteğe bağlı Dosya -
opengraph İsteğe bağlı Dosya -
description İsteğe bağlı Dize -
secondary_button_name İsteğe bağlı Dize -
secondary_button_url İsteğe bağlı Dize -
custom_css İsteğe bağlı Dize -
custom_js İsteğe bağlı Dize -
ads_header İsteğe bağlı Dize -
ads_footer İsteğe bağlı Dize -
link_unlock_seconds İsteğe bağlı Tamsayı -
auto_redirect İsteğe bağlı Boolean (Doğru/Yanlış) -
curl --request POST \
--url 'https://www.myshorturl.link/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://www.myshorturl.link/api/splash-pages/{splash_page_id}
curl --request DELETE \
--url 'https://www.myshorturl.link/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \