نقطة نهاية API:
https://shbbr.com/api/v1/links
مثال الطلب:
curl --location --request GET 'https://shbbr.com/api/v1/links' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
title
لـ العنوان, alias
لـ الاسم المستعار, url
لـ رابط. الافتراضي: title
.status
0
لـ الكل, 1
لـ نشط, 2
لـ منتهي, 3
لـ معطل. الافتراضي: 0
.space_id
domain_id
pixel_id
sort_by
id
لـ تاريخ الإنشاء, clicks
لـ نقرات, title
لـ العنوان, alias
لـ الاسم المستعار, url
لـ رابط. الافتراضي: id
.sort
desc
لـ تنازلي, asc
لـ تصاعدي. الافتراضي: desc
.per_page
10
, 25
, 50
, 100
. الافتراضي: 100
.نقطة نهاية API:
https://shbbr.com/api/v1/links/{id}
مثال الطلب:
curl --location --request GET 'https://shbbr.com/api/v1/links/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
نقطة نهاية API:
https://shbbr.com/api/v1/links
مثال الطلب:
curl --location --request POST 'https://shbbr.com/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
space_id
pixel_ids[]
redirect_password
sensitive_content
0
لـ لا, 1
لـ نعم. الافتراضي: 0
.privacy
0
لـ عام, 1
لـ خاص, 2
لـ كلمة المرور. الافتراضي: 0
.password
privacy
مضبوط على 2
.active_period_start_at
Y-m-d H:i
.active_period_end_at
Y-m-d H:i
.clicks_limit
expiration_url
targets_type
continents
لـ Continents, countries
لـ Countries, operating_systems
لـ Operating systems, browsers
لـ Browsers, languages
لـ Languages, devices
لـ Devices, rotations
لـ Rotations.targets[index][key]
targets_type=country
، القيمة لازم تكون بصيغة ISO 3166-1 alpha-2.targets_type=operating_systems
, the possible values are iOS
, Android
, Windows
, OS X
, Linux
, Ubuntu
, Chrome OS.
targets_type=browsers
، القيم الممكنة هي: Chrome
, Chromium
, Firefox
, Firefox Mobile
, Edge
, Internet Explorer
, Mobile Internet Explorer
, Vivaldi
, Brave
, Safari
, Opera
, Opera Mini
, Opera Mobile
, Opera Touch
, Yandex Browser
, UC Browser
, Samsung Internet
, QQ Browser
, BlackBerry Browser
, Maxtho.
targets_type=devices
، القيم الممكنة هي: Desktop
, Mobile
, Tablet
, Watch
, Television.
targets_type=languages
، القيمة لازم تكون بصيغة ISO 639-1 alpha-2.targets_type=continents
، القيم الممكنة هي: AF
لـ Africa, AN
لـ Antarctica, AS
لـ Asia, EU
لـ Europe, NA
لـ North America, OC
لـ Oceania, SA
لـ South America.targets[index][value]
نقطة نهاية API:
https://shbbr.com/api/v1/links/{id}
مثال الطلب:
curl --location --request PUT 'https://shbbr.com/api/v1/links/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'url={url}'
url
alias
space_id
pixel_ids[]
redirect_password
sensitive_content
0
لـ لا, 1
لـ نعم.privacy
0
لـ عام, 1
لـ خاص, 2
لـ كلمة المرور.password
privacy
مضبوط على 2
.active_period_start_at
Y-m-d H:i
.active_period_end_at
Y-m-d H:i
.clicks_limit
expiration_url
targets_type
continents
لـ Continents, countries
لـ Countries, operating_systems
لـ Operating systems, browsers
لـ Browsers, languages
لـ Languages, devices
لـ Devices, rotations
لـ Rotations.targets[index][key]
targets_type=country
، القيمة لازم تكون بصيغة ISO 3166-1 alpha-2.targets_type=operating_systems
, the possible values are iOS
, Android
, Windows
, OS X
, Linux
, Ubuntu
, Chrome OS.
targets_type=browsers
، القيم الممكنة هي: Chrome
, Chromium
, Firefox
, Firefox Mobile
, Edge
, Internet Explorer
, Mobile Internet Explorer
, Vivaldi
, Brave
, Safari
, Opera
, Opera Mini
, Opera Mobile
, Opera Touch
, Yandex Browser
, UC Browser
, Samsung Internet
, QQ Browser
, BlackBerry Browser
, Maxtho.
targets_type=devices
، القيم الممكنة هي: Desktop
, Mobile
, Tablet
, Watch
, Television.
targets_type=languages
، القيمة لازم تكون بصيغة ISO 639-1 alpha-2.targets_type=continents
، القيم الممكنة هي: AF
لـ Africa, AN
لـ Antarctica, AS
لـ Asia, EU
لـ Europe, NA
لـ North America, OC
لـ Oceania, SA
لـ South America.targets[index][value]
نقطة نهاية API:
https://shbbr.com/api/v1/links/{id}
مثال الطلب:
curl --location --request DELETE 'https://shbbr.com/api/v1/links/{id}' \ --header 'Authorization: Bearer {api_key}'