🐼
Some3C User Manual
Back to Some3C
  • Welcome SOME 3C
  • User Guide
    • Box Phone Farm Manual
    • Build Setup Mobile Farm Guide
  • 🐼Panda Guide
    • Panda Android Screen Projection
    • Download and install
    • USB Connect Phone
    • WIFI Mode Connection
    • LAN Mode Connection
    • Accessible Mode Connection
    • Safe Mode Connection
    • Connection FAQ
    • Panda Setting & Use
    • Members and Versions
    • API interface documentation
    • Contact Us
  • iPhone Farm Setup
    • iPhone Farm Settings
    • API Documentation
  • XP API Documentation
    • Equipment related
    • Configuration related
    • User related
    • Keyboard and Mouse
    • Picture Text Recognition
    • Shortcuts
    • Callback
Powered by GitBook
On this page
  • 1.Log in
  • Calling
  • Response
  • 2.Log out
  • Calling
  • Response
  • 3.Get user information
  • Calling
  • Response
  • 4.Switch sub-account
  • Calling
  • Response
  1. XP API Documentation

User related

Some3C.com – A Professional Solution for iOS Development and Testing

1.Log in

Calling

  • Request Parameters

parameter

type

illustrate

Remark

fun

String

/config/user/login

Request function name

phone

String

Phone number

-

password

String

password

-

utag

Integer

Sub-account

1-10

  • httpGet request example

curl --request GET \
  --url 'http://192.168.9.9:9911/api/config/user/login?phone=13999999999&password=sdfsdfsdf&utag=2'
  • httpPost request example

curl --request POST \
  --url http://192.168.9.9:9911/api \
  --header 'content-type: multipart/form-data' \
  --form fun=/config/user/login \
  --form phone=13999999999 \
  --form password=sdfdfdsf \
  --form utag=2 
  • httpPost json request example [websocket can also send the same json request]

curl --request POST \
  --url http://192.168.9.9:9911/api \
  --header 'Content-Type: application/json' \
  --data '{
    "fun": "/config/user/login",
    "data": {
        "phone":"13999999999",
        "password":"sdfsdfdsf",
        "utag":2
    }
}'

Response

{
  "data": {
    "code": 0,
    "id": "",
    "pass": true,
    "total_license": 0,
    "local_total_license": 100,
    "dev_num": 16,
    "dev_online_num": 0,
    "create_time": 1690800970000,
    "overdue_time": 1683288910000,
    "phone": "13999999999",
    "utag": 2,
    "info_clock_in_time": 60000,
    "add_clock_in_time": 60000,
    "info_time": 885192828,
    "add_time": 0,
    "utag_data": "",
    "test_num": 100,
    "user_state": 2,
    "network_time": 1735124455463,
    "message": "成功"
  },
  "status": 200,
  "message": "成功",
  "msgid": 0,
  "fun": "/config/user/login"
}
  • Response data field description

Fields

illustrate

Remark

total_license

Number of authorizations

-

local_total_license

Test authorization number

-

create_time

Registration Time

-

overdue_time

Expiration time

-

user_state

1 Formal authorization, other test authorization

-

pass

Verification passed

-

dev_num

Number of users

-

dev_online_num

Online

-

dev_num

Verification passed

-

utag

Sub-account

-

2.Log out

Calling

  • Request Parameters

parameter

type

illustrate

Remark

fun

String

/config/user/logout

Request function name

  • httpGet request example

curl --request GET \
  --url 'http://192.168.9.9:9911/api/config/user/logout'
  • httpPost request example

curl --request POST \
  --url http://192.168.9.9:9911/api \
  --header 'content-type: multipart/form-data' \
  --form fun=/config/user/logout
  • httpPost json request example [websocket can also send the same json request]

curl --request POST \
  --url http://192.168.9.9:9911/api \
  --header 'Content-Type: application/json' \
  --data '{
    "fun": "/config/user/logout",
    "data": {
    }
}'

Response

    {
  "data": {
    "code": 0,
    "id": "90:81:58:EE:D1:9E",
    "message": "成功"
  },
  "status": 200,
  "message": "成功",
  "msgid": 0,
  "fun": "/config/user/logout"
}
  • Response data data field description None

3.Get user information

Calling

  • Request Parameters

parameter

type

illustrate

Remark

fun

String

/config/user/info

Request function name

  • httpGet request example

curl --request GET \
  --url 'http://192.168.9.9:9911/api/config/user/info'
  • httpPost request example

curl --request POST \
  --url http://192.168.9.9:9911/api \
  --header 'content-type: multipart/form-data' \
  --form fun=/config/user/info
  • httpPost json request example [websocket can also send the same json request]

curl --request POST \
  --url http://192.168.9.9:9911/api \
  --header 'Content-Type: application/json' \
  --data '{
    "fun": "/config/user/info",
    "data": {
    }
}'

Response

{
  "data": {
    "code": 0,
    "id": "",
    "pass": true,
    "total_license": 0,
    "local_total_license": 100,
    "dev_num": 16,
    "dev_online_num": 0,
    "create_time": 1690800970000,
    "overdue_time": 1683288910000,
    "phone": "13999999999",
    "utag": 2,
    "info_clock_in_time": 60000,
    "add_clock_in_time": 60000,
    "info_time": 885192828,
    "add_time": 0,
    "utag_data": "",
    "test_num": 100,
    "user_state": 2,
    "network_time": 1735124455463,
    "message": "成功"
  },
  "status": 200,
  "message": "成功",
  "msgid": 0,
  "fun": "/config/user/info"
}
  • Response data field description

Fields

illustrate

Remark

total_license

Number of authorizations

-

local_total_license

Test authorization number

-

create_time

Registration Time

-

overdue_time

Expiration time

-

user_state

1 Formal authorization, other test authorization

-

pass

Verification passed

-

dev_num

Number of users

-

dev_online_num

Online

-

dev_num

Verification passed

-

utag

Sub-account

-

4.Switch sub-account

Calling

  • Request Parameters

parameter

type

illustrate

Remark

fun

String

/config/user/switch

Request function name

id

String

1 to 10

  • httpGet request example

curl --request GET \
  --url 'http://192.168.9.9:9911/api/config/user/switch?id=1'
  • httpPost request example

curl --request POST \
  --url http://192.168.9.9:9911/api \
  --header 'content-type: multipart/form-data' \
  --form fun=/config/user/switch \
  --form id=2
  • httpPost json request example [websocket can also send the same json request]

curl --request POST \
  --url http://192.168.9.9:9911/api \
  --header 'Content-Type: application/json' \
  --data '{
    "fun": "/config/user/switch",
    "data": {
      "id":"3"
    }
}'

Response

{
  "data": {
    "code": 0,
    "id": "2",
    "message": "成功"
  },
  "status": 200,
  "message": "成功",
  "msgid": 0,
  "fun": "/config/user/switch"
}
  • Response data field description

Fields

illustrate

Remark

id

Subaccount id

-

PreviousConfiguration relatedNextKeyboard and Mouse

Last updated 1 month ago