نقطة نهاية API:
https://cut.sa/api/v1/links
مثال الطلب:
curl --location --request GET 'https://cut.sa/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
title
for العنوان, alias
for الاسم المستعار, url
for الرابط. Defaults to: title
.status
0
for الكل, 1
for تفعيل, 2
for منتهي, 3
for اللغاء التفعيل. Defaults to: 0
.space_id
domain_id
pixel_id
sort_by
id
for تاريخ الانشاء, clicks
for النقرات, title
for العنوان, alias
for الاسم المستعار, url
for الرابط. Defaults to: id
.sort
desc
for تنازلي, asc
for تصاعدي. Defaults to: desc
.per_page
10
, 25
, 50
, 100
. Defaults to: 10
.نقطة نهاية API:
https://cut.sa/api/v1/links/{id}
مثال الطلب:
curl --location --request GET 'https://cut.sa/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
نقطة نهاية API:
https://cut.sa/api/v1/links
مثال الطلب:
curl --location --request POST 'https://cut.sa/api/v1/links' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}' \ --data-urlencode 'domain={id}'
url
domain_id
alias
password
space_id
pixel_ids
disabled
0
for تفعيل, 1
for اللغاء التفعيل. Defaults to: 0
.privacy
0
for عام, 1
for خاص, 2
for كلمة المرور. Defaults to: 0
.privacy_password
privacy
set to 2
.expiration_url
expiration_date
YYYY-MM-DD
format.expiration_time
HH:MM
format.expiration_clicks
target_type
0
for None, 1
for الموقع الجغرافي, 2
for منصة, 4
for تناوب.country[index][key]
country[index][value]
platform[index][key]
iOS
, Android
, Windows
, OS X
, Linux
, Ubuntu
, Chrome OS
.platform[index][value]
language[index][key]
language[index][value]
rotation[index][value]
نقطة نهاية API:
https://cut.sa/api/v1/links/{id}
مثال الطلب:
curl --location --request PUT 'https://cut.sa/api/v1/links/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
url
alias
password
space_id
pixel_ids
disabled
0
for تفعيل, 1
for اللغاء التفعيل.privacy
0
for عام, 1
for خاص, 2
for كلمة المرور.privacy_password
privacy
set to 2
.expiration_url
expiration_date
YYYY-MM-DD
format.expiration_time
HH:MM
format.expiration_clicks
target_type
0
for None, 1
for الموقع الجغرافي, 2
for منصة, 4
for تناوب.country[index][key]
country[index][value]
platform[index][key]
iOS
, Android
, Windows
, OS X
, Linux
, Ubuntu
, Chrome OS
.platform[index][value]
language[index][key]
language[index][value]
rotation[index][value]
نقطة نهاية API:
https://cut.sa/api/v1/links/{id}
مثال الطلب:
curl --location --request DELETE 'https://cut.sa/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'