-
Notifications
You must be signed in to change notification settings - Fork 158
Conversation
This is awesome. Is it done? How to use it? Will you please provide documentation? |
@amihos yes it’s done, install postman and open attached json collection |
You've done a great work. Tanx a lot |
Hi There, cause i use cdn i change the settings in cdn panel and but it didn't change the output format for postman and again it returns html in postman. did you parse json in your code? or it is about cdn? |
Hi @rezafarokhi , it’s about cdn, but you can convert from string anyway. |
I am having the same experience. Beside postman that shows html, I also tried Google script FetchURl Class which is for calling apis and the result was the same: HTML. The only way to see the correct Json output is to call the link via browser. Also, I noticed that the HTML does not contain JSON data. Here is the output: <style> [v-cloak] { display: none; } </style> <title>登录</title> <style> #app { padding-top: 100px; } h1 { text-align: center; color: #fff; margin: 20px 0 50px 0; } .ant-btn, .ant-input { height: 50px; border-radius: 30px; } .ant-input-affix-wrapper .ant-input-prefix { left: 23px; } .ant-input-affix-wrapper .ant-input:not(:first-child) { padding-left: 50px; } .selectLang{ display: flex; text-align: center; justify-content: center; } </style>登录登录
|
Update: I fixed the issue by calling login request first, getting cookie and use it in headers for getting inbounds call and it worked |
How did you call login request? |
Just Call like this: use thisheader in your request: "headers": { |
HOw
لاگین کردم و {"success":true,"msg":"登录成功","obj":null} دریافت شد |
وقت بخیر |
|
Hi, When we use the Rest API to get the information of an inbound, it returns null in clientStats object. Is there a specific reason? |
Also needed some routes:
I think this will be very easy for you |
Heeyy any body is here? |
1 similar comment
Why you mention repeatedly? |
Because it is necessary. If you do it for a fee, I can contact you on Telegram. |
#137 |
生成 xray 配置文件失败: json: error calling MarshalJSON for type json_util.RawMessage: invalid character '"' after object key:value pair |
Go language logic :) |
سلام نمونه درخواست برای ایجاد کاربر:
اشتراک ایجاد شده جیسون اشتراک
حتی سرویس رو ریست کردم چند بار نصب کردم ولی هر باز بعد از ایجاد اشتراک xray با خطا مواجه میشه و کار نمیکنه هیچی |
Could you probably improve API to "settings", "streamSettings" and "sniffing" return object not string? |
اگر پشت سی دی ان هست باید فقط از پورتای سی دی ان استفاده کنین و گرنه ارور میده |
سلام وقتتون بخیر. مقدار headers نباید خالی باشه. اگه مقداری ندارید کلا حذفش کنین |
سلام. ممنون بابت به اشتراک گذاری این فایل جیسون. من همه متدهارو تست کردم درست کار میکنه فقط دریافت اطلاعات یک ردیف خطای 404 داد. اگر کسی حلش کرد بگه ممنون |
نه بدون کوکی خطا میده |
ی چیز همینطوری نوشتم https://github.com/alirezax5/xuiapi/blob/main/xUiapi.php $a = new \alirezax5\XUiApi\xUiapi('ip:port, 'username', 'pass'); |
How to get proxy uri by API??? |
For Vless:
For Vmess:: {
"v": "2",
"ps": "{inbound_remark}",
"add": "{server_ip}",
"port": {port},
"id": "{client_id}",
"aid": 0,
"net": "{transmission}",
"type": "none",
"host": "",
"path": "/",
"tls": "none"
} then Encode the json from above to Base64 format with a
|
دمت گرم حاجی ولی خودت تستش کردی؟ چون برا من کار نکرد! ایدی تلتو میدی لطفا |
لاگ های مربوطه به api کجا ذخیره میشه؟ من یه مشکلی دارم جدیدا ریکوییست رو دریافت نمیکنه سرور میخوام ببینم چشه!! |
hi, there |
@hossinasaadi |
missied "clientStats" on get inbound |
Hello, how do I use it? Look at the example below and see if it is correct or not. |
for login: use php CURL |
Are you sure brother? Because it didn't work for me |
should it necessarily done by a domain? I tried every possible port with ip address but it just gave 401. my mind is fucked up right now please help me. |
Yes but use this class: |
plz update the api for more control and get mor info like get users |
سلام باید با متد getinbunds تمام کانفیگ ها رو بگیرید و در فایل جیسون دریافتی در بخش clientStats مصرف تمام کلاینت ها رو نوشته حتی کلاینت هایی که حذف شده اند |
Postman collection attached
X-UI API.postman_collection3.zip