स्प्लैश पेज

GET https://u.page/api/splash-pages/
curl --request GET \
--url 'https://u.page/api/splash-pages/' \
--header 'Authorization: Bearer {api_key}' \
पैरामीटर विवरण विवरण
page वैकल्पिक इंटीजर पृष्ठ संख्या जिससे आप परिणाम प्राप्त करना चाहते हैं। डिफ़ॉल्ट रूप में 1
results_per_page वैकल्पिक इंटीजर प्रति पृष्ठ कितने परिणाम आप चाहते हैं। अनुमति प्राप्त मान हैं: 10 , 25 , 50 , 100 , 250 , 500 , 1000। डिफ़ॉल्ट रूप में 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://u.page/api/projects?&page=1", "last": "https://u.page/api/projects?&page=1", "next": null, "prev": null, "self": "https://u.page/api/projects?&page=1" } }
GET https://u.page/api/splash-pages/{splash_page_id}
curl --request GET \
--url 'https://u.page/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://u.page/api/projects
पैरामीटर विवरण विवरण
name आवश्यक स्ट्रिंग -
title वैकल्पिक स्ट्रिंग -
logo वैकल्पिक फ़ाइल -
description वैकल्पिक स्ट्रिंग -
secondary_button_name वैकल्पिक स्ट्रिंग -
secondary_button_url वैकल्पिक स्ट्रिंग -
custom_css वैकल्पिक स्ट्रिंग -
custom_js वैकल्पिक स्ट्रिंग -
ads_header वैकल्पिक स्ट्रिंग -
ads_footer वैकल्पिक स्ट्रिंग -
link_unlock_seconds वैकल्पिक इंटीजर -
auto_redirect वैकल्पिक बूलियन -
curl --request POST \
--url 'https://u.page/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://u.page/api/splash-pages/{splash_page_id}
पैरामीटर विवरण विवरण
name वैकल्पिक स्ट्रिंग -
title वैकल्पिक स्ट्रिंग -
logo वैकल्पिक फ़ाइल -
description वैकल्पिक स्ट्रिंग -
secondary_button_name वैकल्पिक स्ट्रिंग -
secondary_button_url वैकल्पिक स्ट्रिंग -
custom_css वैकल्पिक स्ट्रिंग -
custom_js वैकल्पिक स्ट्रिंग -
ads_header वैकल्पिक स्ट्रिंग -
ads_footer वैकल्पिक स्ट्रिंग -
link_unlock_seconds वैकल्पिक इंटीजर -
auto_redirect वैकल्पिक बूलियन -
curl --request POST \
--url 'https://u.page/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://u.page/api/splash-pages/{splash_page_id}
curl --request DELETE \
--url 'https://u.page/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \