XUI.ONE için kullanabileceğiniz Admin API’leri
Not: Admin API’lerini kullanabilmek için API KEY oluşturmanız gerekmektedir. XUI.ONE’da Yönetici API’si Nasıl Eklenir? konusunu inceleyebilirsiniz.
API’ye Erişebilmek için:
http > http://websiteniz.com:8000/accesscode/?api_key=#APIKEY#
https >
https://websiteniz.com:9000/accesscode/?api_key=#APIKEY#
Örnek:
https://[domain]:[port]/[accesscode]/?api_key=[api_key]&actoion=[api_command]
https://websiteniz.com:9000/rnVKrSLe/?api_key=1A2C5C80056A80F5AB6ECAD3937875DE&action=get_packages
Bir geliştirici olarak bunu API noktanız olarak kullanabilirsiniz ve “action” parametresini aşağıdaki API komutlarından biri ile değiştirebilirsiniz:
GET INFO
mysql_query
user_info
get_lines
get_mags
get_enigmas
get_users
get_streams
get_channels
get_stations
get_movies
get_series_list
get_episodes
LOGS & EVENT API
activity_logs
live_connections
credit_logs
client_logs
user_logs
stream_errors
watch_output
system_logs
login_logs
restream_logs
mag_events
LINE API
get_line
create_line
edit_line
delete_line
disable_line
enable_line
unban_line
ban_line
USER API
get_user
create_user
edit_user
delete_user
disable_user
enable_user
MAG API
get_mag
create_mag
edit_mag
delete_mag
disable_mag
enable_mag
unban_mag
ban_mag
convert_mag
ENIGMA API
get_enigma
create_enigma
edit_enigma
delete_enigma
disable_enigma
enable_enigma
unban_enigma
ban_enigma
convert_enigma
BOUQUETE API
get_bouquets
get_bouquet
create_bouquet
edit_bouquet
delete_bouquet
ACCESS CODE API
get_access_codes
get_access_code
create_access_code
edit_access_code
delete_access_code
HMAC API
get_hmacs
get_hmac
create_hmac
edit_hmac
delete_hmac
EPG API
get_epgs
get_epg
create_epg
edit_epg
delete_epg
reload_epg
GROUPS API
get_groups
get_group
create_group
edit_group
delete_group
PACKAGES API
get_packages
get_package
create_package
edit_package
delete_package
TRANSCODING PROFILE API
get_transcode_profiles
get_transcode_profile
create_transcode_profile
edit_transcode_profile
delete_transcode_profile
RTMP API
get_rtmp_ips
get_rtmp_ip
create_rtmp_ip
edit_rtmp_ip
delete_rtmp_ip
CATEGORIES API
get_categories
get_category
create_category
edit_category
delete_category
SUB RESELLER API
get_subresellers
get_subreseller
create_subreseller
edit_subreseller
delete_subreseller
WATCH FOLDERS API
get_watch_folders
get_watch_folder
create_watch_folder
edit_watch_folder
delete_watch_folder
reload_watch_folder
BLOCKED ISP & IP API
get_blocked_isps
add_blocked_isp
delete_blocked_isp
get_blocked_uas
add_blocked_ua
delete_blocked_ua
get_blocked_ips
add_blocked_ip
delete_blocked_ip
flush_blocked_ips
STREAMS API
get_stream
create_stream
edit_stream
start_stream
stop_stream
delete_stream
CHANNEL API
get_channel
create_channel
edit_channel
start_channel
stop_channel
delete_channel
STATION API
get_station
create_station
edit_station
start_station
stop_station
delete_station
MOVIE API
get_movie
create_movie
edit_movie
start_movie
stop_movie
delete_movie
SERIES API
get_series
create_series
edit_series
delete_series
EPISONE API
get_episode
create_episode
delete_episode
edit_episode
start_episode
stop_episode
SERVERS API
get_servers
get_server
install_server
delete_server
edit_server
install_proxy
edit_proxy
SETTINGS, STATS AND OTHER API
get_settings
edit_settings
get_server_stats
get_fpm_status
get_rtmp_stats
get_free_space
get_pids
get_certificate_info
reload_nginx
clear_temp
clear_streams
update_blacklist
get_directory
kill_pid
kill_connection
reload_cache
Bazı işlevler sunucuya özeldir, bu nedenle server_id’yi onlarla birlikte gönderin, örneğin:
get_server_stats, get_fpm_status, get_rtmp_stats, get_free_space, get_pids, get_certificate_info, reload_nginx, clear_temp, clear_streams, update_blacklist, get_directory
Satır Örneği – Parolayı helloworld olarak değiştirmek ve 1 ve 2 buketlerini seçmek için 4 numaralı satırı düzenleme:
action=edit_line&id=4&username=test&password=helloworld&bouquets_selected[]=1&bouquets_selected[]=2