Splash sayfaları
GET https://foxdirects.com/api/splash-pages/
curl --request GET \
--url 'https://foxdirects.com/api/splash-pages/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://foxdirects.com/api/splash-pages/' \
--header 'Authorization: Bearer {api_key}' \
Parametreler | Detaylar | Açıklama |
---|---|---|
page | Opsiyonel Tam sayı | Sonuç almak istediğiniz sayfa numarası. Varsayılan değer 1 ’dir. |
results_per_page | Opsiyonel Tam sayı | Her sayfada kaç sonuç istediğiniz. İzin verilen değerler: 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Varsayılan değer 25 ’dir. |
{
"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://foxdirects.com/api/projects?&page=1",
"last": "https://foxdirects.com/api/projects?&page=1",
"next": null,
"prev": null,
"self": "https://foxdirects.com/api/projects?&page=1"
}
}
GET https://foxdirects.com/api/splash-pages/{splash_page_id}
curl --request GET \
--url 'https://foxdirects.com/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://foxdirects.com/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://foxdirects.com/api/projects
Parametreler | Detaylar | Açıklama |
---|---|---|
name | Gerekli Metin | - |
title | Opsiyonel Metin | - |
logo | Opsiyonel Dosya | - |
description | Opsiyonel Metin | - |
secondary_button_name | Opsiyonel Metin | - |
secondary_button_url | Opsiyonel Metin | - |
custom_css | Opsiyonel Metin | - |
custom_js | Opsiyonel Metin | - |
ads_header | Opsiyonel Metin | - |
ads_footer | Opsiyonel Metin | - |
link_unlock_seconds | Opsiyonel Tam sayı | - |
auto_redirect | Opsiyonel Boolean | - |
curl --request POST \
--url 'https://foxdirects.com/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://foxdirects.com/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://foxdirects.com/api/splash-pages/{splash_page_id}
Parametreler | Detaylar | Açıklama |
---|---|---|
name | Opsiyonel Metin | - |
title | Opsiyonel Metin | - |
logo | Opsiyonel Dosya | - |
description | Opsiyonel Metin | - |
secondary_button_name | Opsiyonel Metin | - |
secondary_button_url | Opsiyonel Metin | - |
custom_css | Opsiyonel Metin | - |
custom_js | Opsiyonel Metin | - |
ads_header | Opsiyonel Metin | - |
ads_footer | Opsiyonel Metin | - |
link_unlock_seconds | Opsiyonel Tam sayı | - |
auto_redirect | Opsiyonel Boolean | - |
curl --request POST \
--url 'https://foxdirects.com/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://foxdirects.com/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://foxdirects.com/api/splash-pages/{splash_page_id}
curl --request DELETE \
--url 'https://foxdirects.com/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://foxdirects.com/api/splash-pages/{splash_page_id}' \
--header 'Authorization: Bearer {api_key}' \