صفحات اسپلش
GET https://98l.ir/api/splash-pages/
curl --request GET \
--url 'https://98l.ir/api/splash-pages/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://98l.ir/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": null, "datetime": "2025-10-15 11:07:58", }, ], "meta": { "page": 1, "results_per_page": 25, "total": 1, "total_pages": 1 }, "links": { "first": "https://98l.ir/api/projects?page=1", "last": "https://98l.ir/api/projects?page=1", "next": null, "prev": null, "self": "https://98l.ir/api/projects?page=1" } }
GET https://98l.ir/api/splash-pages/{splash_page_id}
curl --request GET \
--url 'https://98l.ir/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://98l.ir/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
{ "data": { "id": 1, "name": "Development", "color": "#0e23cc", "last_datetime": null, "datetime": "2025-10-15 11:07:58", } }
POST https://98l.ir/api/projects
پارامترها | جزئیات | توضیحات |
---|---|---|
name | الزامی رشته | - |
title | اختیاری رشته | - |
logo | اختیاری فایل | - |
favicon | اختیاری فایل | - |
opengraph | اختیاری فایل | - |
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://98l.ir/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://98l.ir/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://98l.ir/api/splash-pages/{splash_page_id}
پارامترها | جزئیات | توضیحات |
---|---|---|
name | اختیاری رشته | - |
title | اختیاری رشته | - |
logo | اختیاری فایل | - |
favicon | اختیاری فایل | - |
opengraph | اختیاری فایل | - |
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://98l.ir/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://98l.ir/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://98l.ir/api/splash-pages/{splash_page_id}
curl --request DELETE \
--url 'https://98l.ir/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://98l.ir/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \